body[data-mode="view"] {
  color-scheme: dark;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
  background: radial-gradient(ellipse at 50% 44%, #253345 0%, #111d2b 42%, #080f18 85%);
  color: #f4e4c9;
  -webkit-user-select: none;
  user-select: none;
}
body[data-mode="view"] .masthead,
body[data-mode="view"] .artwork-bar,
body[data-mode="view"] .parameter-panel,
body[data-mode="view"] .footer,
body[data-mode="view"] .stage-note,
body[data-mode="view"] .view-entry { display: none !important; }
body[data-mode="view"] main { position: fixed; inset: 0; height: 100dvh; }
body[data-mode="view"] .gallery { width: 100%; height: 100%; min-height: 0; max-height: none; }
body[data-mode="view"] .stage { inset: 0; touch-action: none; -webkit-touch-callout: none; outline-offset: -8px !important; }
body[data-mode="view"] .stage:focus { outline: none; }
body[data-mode="view"]:has(.stage:focus-visible) .viewer-face-state { outline: 1px solid #d9c5a477; outline-offset: 7px; border-radius: 4px; }
body[data-mode="view"] .loading { color: #d9c5a4; }
body[data-mode="view"] .notice { bottom: calc(100px + env(safe-area-inset-bottom)); }
.viewer-top { position: fixed; z-index: 4; top: calc(16px + env(safe-area-inset-top)); left: max(24px, env(safe-area-inset-left)); right: max(18px, env(safe-area-inset-right)); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.viewer-edition { display: flex; align-items: center; gap: 11px; font: italic 18px Georgia, serif; color: #dfc594; letter-spacing: .02em; }
.viewer-edition::before { content: ""; display: block; width: 5px; height: 5px; border: 1px solid #dfc594; transform: rotate(45deg); }
.viewer-settings { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 13px; color: #d3d0c9; border: 1px solid #d2c4a42e; border-radius: 24px; background: #101b2880; backdrop-filter: blur(12px); font-size: 12px; }
.viewer-settings svg { width: 15px; height: 15px; }
.viewer-settings:hover, .viewer-settings:focus-visible { color: #fff2d6; background: #273746; }
.viewer-bottom { position: fixed; z-index: 3; left: 20px; right: 20px; bottom: calc(26px + env(safe-area-inset-bottom)); display: flex; align-items: center; flex-direction: column; gap: 16px; pointer-events: none; }
.viewer-face-state { display: flex; align-items: center; gap: 13px; font-size: 11px; color: #b8b7b4; letter-spacing: .15em; }
.face-marks { display: inline-flex; align-items: center; gap: 5px; }
.face-marks i { width: 5px; height: 5px; border-radius: 4px; background: #dfc59442; transition: width .3s ease, background .3s ease; }
body[data-face="front"] .face-marks i:first-child,
body[data-face="back"] .face-marks i:last-child { width: 17px; background: #dfc594; }
.viewer-instruction { display: flex; align-items: center; gap: 10px; margin: 0; color: #a0a7af; font-size: 12px; letter-spacing: .08em; transition: opacity .5s ease; }
.viewer-instruction svg { width: 25px; height: 16px; stroke: #c5b18d; }
.has-interacted .viewer-instruction { opacity: .5; }
body[data-mode="view"] .fallback3d { padding: 90px 30px 96px; }
body[data-mode="view"] .flipper3d { height: auto; width: min(84vw, 54vh); max-height: calc(100dvh - 150px); }
body[data-mode="view"] .back3d { background: #142134 center/cover no-repeat; }
@media (orientation: landscape) and (max-height: 540px) {
  .viewer-top { top: max(8px, env(safe-area-inset-top)); }
  .viewer-bottom { left: auto; right: max(24px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); align-items: flex-end; }
  .viewer-instruction { font-size: 10px; max-width: 140px; line-height: 1.7; }
  .viewer-instruction svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .face-marks i, .viewer-instruction { transition: none; } }
