:root {
  color-scheme: dark;
  --paper: #f6f7fb;
  --muted: rgba(236, 241, 255, .68);
  --line: rgba(255, 255, 255, .15);
  --line-bright: rgba(255, 255, 255, .35);
  --accent: #83ecff;
  --accent-rgb: 131, 236, 255;
  --world-bg: none;
  --world-frame: none;
  --world-frame-slice: 158;
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-right: max(18px, env(safe-area-inset-right));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  --safe-left: max(18px, env(safe-area-inset-left));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020306;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #020306; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--paper);
  background: transparent;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -3;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background-image: var(--world-bg);
  background-position: center top;
  background-size: cover;
  filter: saturate(.92) brightness(.74);
  transform: scale(1.025);
}

body::after {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 7%, rgba(var(--accent-rgb), .12), transparent 36rem),
    linear-gradient(180deg, rgba(2, 3, 6, .14), rgba(2, 3, 6, .76) 52vh, #020306 130vh);
}

:root[data-world="cosmos"],
body[data-world="cosmos"] {
  --world-bg: image-set(url('/assets/gallery-worlds/cosmos.avif') type('image/avif'), url('/assets/gallery-worlds/cosmos.webp') type('image/webp'));
  --world-frame: image-set(url('/assets/gallery-ornaments/cosmos-frame-v1.avif') type('image/avif'), url('/assets/gallery-ornaments/cosmos-frame-v1.webp') type('image/webp'));
  --world-frame-slice: 158;
}
:root[data-world="cyber"],
body[data-world="cyber"] {
  --accent: #52e8ff;
  --accent-rgb: 82, 232, 255;
  --world-bg: image-set(url('/assets/gallery-worlds/cyber.avif') type('image/avif'), url('/assets/gallery-worlds/cyber.webp') type('image/webp'));
  --world-frame: image-set(url('/assets/gallery-ornaments/cyber-frame-v2.avif') type('image/avif'), url('/assets/gallery-ornaments/cyber-frame-v2.webp') type('image/webp'));
  --world-frame-slice: 152;
}
:root[data-world="bloom"],
body[data-world="bloom"] {
  --accent: #a7ffdd;
  --accent-rgb: 167, 255, 221;
  --world-bg: image-set(url('/assets/gallery-worlds/bloom.avif') type('image/avif'), url('/assets/gallery-worlds/bloom.webp') type('image/webp'));
  --world-frame: image-set(url('/assets/gallery-ornaments/bloom-frame-v1.avif') type('image/avif'), url('/assets/gallery-ornaments/bloom-frame-v1.webp') type('image/webp'));
  --world-frame-slice: 120;
}
:root[data-world="mythic"],
body[data-world="mythic"] {
  --accent: #ffd990;
  --accent-rgb: 255, 217, 144;
  --world-bg: image-set(url('/assets/gallery-worlds/mythic.avif') type('image/avif'), url('/assets/gallery-worlds/mythic.webp') type('image/webp'));
  --world-frame: image-set(url('/assets/gallery-ornaments/mythic-frame-v1.avif') type('image/avif'), url('/assets/gallery-ornaments/mythic-frame-v1.webp') type('image/webp'));
  --world-frame-slice: 150;
}
:root[data-world="beings"],
body[data-world="beings"] {
  --accent: #6fffea;
  --accent-rgb: 111, 255, 234;
  --world-bg: image-set(url('/assets/gallery-worlds/beings.avif') type('image/avif'), url('/assets/gallery-worlds/beings.webp') type('image/webp'));
  --world-frame: image-set(url('/assets/gallery-ornaments/beings-frame-v1.avif') type('image/avif'), url('/assets/gallery-ornaments/beings-frame-v1.webp') type('image/webp'));
  --world-frame-slice: 150;
}
:root[data-world="abyss"],
body[data-world="abyss"] {
  --accent: #7ed8ff;
  --accent-rgb: 126, 216, 255;
  --world-bg: image-set(url('/assets/gallery-worlds/abyss.avif') type('image/avif'), url('/assets/gallery-worlds/abyss.webp') type('image/webp'));
  --world-frame: image-set(url('/assets/gallery-ornaments/abyss-frame-v1.avif') type('image/avif'), url('/assets/gallery-ornaments/abyss-frame-v1.webp') type('image/webp'));
  --world-frame-slice: 145;
}
:root[data-world="ember"],
body[data-world="ember"] {
  --accent: #ff9a52;
  --accent-rgb: 255, 154, 82;
  --world-bg: image-set(url('/assets/gallery-worlds/ember.avif') type('image/avif'), url('/assets/gallery-worlds/ember.webp') type('image/webp'));
  --world-frame: image-set(url('/assets/gallery-ornaments/ember-frame-v1.avif') type('image/avif'), url('/assets/gallery-ornaments/ember-frame-v1.webp') type('image/webp'));
  --world-frame-slice: 142;
}
:root[data-world="prism"],
body[data-world="prism"] {
  --accent: #e7c6ff;
  --accent-rgb: 231, 198, 255;
  --world-bg: image-set(url('/assets/gallery-worlds/prism.avif') type('image/avif'), url('/assets/gallery-worlds/prism.webp') type('image/webp'));
  --world-frame: image-set(url('/assets/gallery-ornaments/prism-frame-v1.avif') type('image/avif'), url('/assets/gallery-ornaments/prism-frame-v1.webp') type('image/webp'));
  --world-frame-slice: 150;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 500;
  top: 8px;
  left: 50%;
  padding: 10px 14px;
  color: #040509;
  background: var(--paper);
  text-decoration: none;
  transform: translate(-50%, -160%);
}
.skip-link:focus { transform: translate(-50%, 0); }

.archive-header {
  position: fixed;
  z-index: 40;
  top: 50%;
  left: var(--safe-left);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(3, 4, 8, .58);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  transform: translateY(-50%);
}

.nexus-link,
.surprise-button,
.world-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, .7);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nexus-link { font-size: 1.35rem; }
.surprise-button { font-size: 1.25rem; }
.world-nav { display: grid; gap: 4px; }
.world-button { position: relative; font-size: 1.2rem; filter: grayscale(.2); }
.world-button::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid transparent;
  border-radius: inherit;
}
.world-button[aria-current="page"] {
  color: #fff;
  background: rgba(var(--accent-rgb), .16);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), .28);
  filter: none;
}
.world-button[aria-current="page"]::after { border-color: rgba(var(--accent-rgb), .58); }
.nexus-link:hover, .nexus-link:focus-visible,
.surprise-button:hover, .surprise-button:focus-visible,
.world-button:hover, .world-button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  outline: none;
  transform: scale(1.08);
}

.archive-main {
  position: relative;
  z-index: 2;
  width: min(1880px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(6.75rem, 14vh, 10rem) var(--safe-right) 16vh max(86px, calc(var(--safe-left) + 68px));
}

.world-atmosphere {
  position: absolute;
  z-index: -1;
  top: 14vh;
  right: 3vw;
  left: 7vw;
  height: 58vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), .08), transparent 64%);
  filter: blur(40px);
  pointer-events: none;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 4px;
  grid-auto-flow: dense;
  gap: clamp(10px, 1.2vw, 22px);
  align-items: stretch;
}

.art-card {
  position: relative;
  grid-column: span 4;
  aspect-ratio: var(--art-ratio);
  align-self: start;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: clamp(4px, .7vw, 12px);
  outline: 0;
  color: inherit;
  background: var(--card-color, #08090d);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42), 0 0 0 1px rgba(0, 0, 0, .38);
  cursor: zoom-in;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
  isolation: isolate;
  transition: border-color .25s ease, box-shadow .25s ease, transform .32s cubic-bezier(.2, .8, .2, 1);
}
.art-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), .22), transparent 32%),
    linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, .07) 42%, transparent 62%),
    var(--card-color, #08090d);
  background-size: auto, 220% 100%, auto;
  opacity: .62;
  pointer-events: none;
  transition: opacity .45s ease;
  animation: card-materialize 2.4s ease-in-out infinite;
}
.art-card.is-loaded::before { opacity: 0; animation: none; }
.art-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.art-card:hover,
.art-card:focus-visible {
  z-index: 5;
  border-color: rgba(var(--accent-rgb), .82);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .6), 0 0 38px rgba(var(--accent-rgb), .18);
  transform: translateY(-4px) scale(1.012);
}
.art-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.art-card:focus-visible::after { box-shadow: inset 0 0 0 2px #020306; }
.art-card.is-featured::after {
  border: clamp(7px, .72vw, 11px) solid transparent;
  border-image-source: var(--world-frame);
  border-image-slice: var(--world-frame-slice);
  border-image-width: clamp(7px, .72vw, 11px);
  border-image-repeat: stretch;
  opacity: .38;
  filter: saturate(.9) brightness(.86);
}
.art-card.is-featured:hover::after,
.art-card.is-featured:focus-visible::after {
  opacity: .82;
  filter: saturate(1.08) brightness(1.02);
}
.art-card picture,
.art-card img { display: block; width: 100%; height: 100%; }
.art-card picture { position: relative; z-index: 2; }
.art-card img {
  object-fit: contain;
  opacity: 0;
  transform: none;
  transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}
.art-card img.is-loaded { opacity: 1; }
.art-card:hover img,
.art-card:focus-visible img { transform: none; }
.art-label, .art-saved-mark { display: none; }

.archive-message {
  display: grid;
  place-items: center;
  min-height: 54vh;
  color: var(--accent);
  font-size: clamp(2rem, 6vw, 5rem);
}
.archive-message[hidden] { display: none; }
.archive-message button,
.load-more {
  min-width: 64px;
  min-height: 44px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(2, 3, 6, .62);
  cursor: pointer;
}
.load-more-shell { display: grid; place-items: center; margin: 36px 0; }

body.viewer-open { overflow: hidden; }
.art-viewer { position: fixed; z-index: 100; inset: 0; }
.art-viewer[hidden] { display: none; }
.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 4, .94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.viewer-stage {
  position: absolute;
  inset: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #010204;
  box-shadow: 0 40px 140px rgba(0, 0, 0, .9);
}
.viewer-header,
.viewer-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 8px 12px;
  background: rgba(4, 5, 9, .94);
}
.viewer-header { border-bottom: 1px solid var(--line); }
.viewer-footer { border-top: 1px solid var(--line); }
.viewer-identity { min-width: 0; }
#viewer-index {
  margin: 0;
  color: var(--accent);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.viewer-identity h2 {
  margin: 3px 0 0;
  overflow: hidden;
  font-size: clamp(.82rem, 1.5vw, 1.12rem);
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.viewer-header-actions,
.viewer-nav,
.zoom-controls { display: flex; align-items: center; gap: 5px; }
.viewer-mode {
  padding: 6px 8px;
  border: 1px solid rgba(var(--accent-rgb), .3);
  color: var(--accent);
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.viewer-download,
.viewer-copy-link,
.viewer-header button,
.viewer-footer button {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--paper);
  background: transparent;
  font-size: .62rem;
  font-weight: 740;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.viewer-header button:hover,
.viewer-header button:focus-visible,
.viewer-footer button:hover,
.viewer-footer button:focus-visible,
.viewer-download:hover,
.viewer-download:focus-visible {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .11);
  outline: none;
}
.viewer-close { min-width: 40px; font-size: 1.35rem !important; }
.viewer-save[aria-pressed="true"] { color: #ffd782; border-color: rgba(255, 215, 130, .55); }
.viewer-canvas-shell { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #010204; }
.zoom-viewer { width: 100%; height: 100%; }
.viewer-loading {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  background: #010204;
  font-size: .64rem;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.viewer-loading[hidden] { display: none; }
.viewer-loading-signal {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--accent-rgb), .24);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.viewer-gesture-hint {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  left: 50%;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255, 255, 255, .74);
  background: rgba(0, 0, 0, .68);
  font-size: .58rem;
  letter-spacing: .08em;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .3s ease;
}
.viewer-gesture-hint.is-dismissed { opacity: 0; }
.viewer-footer > p { margin: 0; color: var(--muted); font-size: .6rem; text-align: center; }
.openseadragon-container:focus { outline: none; }
.navigator {
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, .42) !important;
  border-radius: 6px;
  background: rgba(0, 0, 0, .45) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .52);
  opacity: .78 !important;
}

.art-viewer:fullscreen { background: #010204; }
.art-viewer:fullscreen .viewer-stage {
  inset: 0;
  grid-template-rows: minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.art-viewer:fullscreen .viewer-header,
.art-viewer:fullscreen .viewer-footer,
.art-viewer:fullscreen .viewer-backdrop,
.art-viewer:fullscreen .viewer-gesture-hint { display: none; }
.art-viewer:fullscreen .viewer-canvas-shell { grid-row: 1; }
.art-viewer:fullscreen .navigator { right: 16px !important; bottom: 16px !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes card-materialize {
  0%, 100% { background-position: center, 120% 0, center; }
  50% { background-position: center, -80% 0, center; }
}

@media (max-width: 980px) {
  .archive-main { padding-left: var(--safe-left); padding-bottom: 120px; }
  .archive-header {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    bottom: auto;
    left: max(10px, env(safe-area-inset-left));
    display: flex;
    justify-content: center;
    padding: 7px;
    overflow-x: auto;
    transform: none;
    scrollbar-width: none;
  }
  .archive-header::-webkit-scrollbar { display: none; }
  .world-nav { display: flex; }
  .nexus-link, .surprise-button, .world-button { flex: 0 0 44px; width: 44px; height: 44px; }
  .art-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .viewer-header-actions .viewer-mode,
  .viewer-copy-link { display: none; }
  .viewer-footer > p { display: none; }
}

@media (max-width: 620px) {
  :root { --safe-left: max(8px, env(safe-area-inset-left)); --safe-right: max(8px, env(safe-area-inset-right)); }
  .archive-main { padding-top: clamp(8rem, 18vh, 9rem); padding-right: 8px; padding-left: 8px; }
  .art-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .archive-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    justify-content: stretch;
    justify-items: center;
    gap: 4px;
    overflow: visible;
    border-radius: 30px;
  }
  .world-nav {
    display: grid;
    grid-template-columns: repeat(4, 44px);
    gap: 4px;
    justify-content: center;
  }
  .nexus-link, .surprise-button { align-self: center; }
  .nexus-link, .surprise-button, .world-button { flex-basis: 44px; width: 44px; height: 44px; }
  .viewer-stage { inset: 0; border: 0; border-radius: 0; }
  .viewer-header { min-height: 52px; }
  .viewer-identity { display: none; }
  .viewer-header-actions { width: 100%; justify-content: flex-end; }
  .viewer-download { margin-right: auto; }
  .viewer-footer { min-height: 54px; padding: 6px; }
  .viewer-footer button { min-height: 38px; padding: 0 9px; }
  .viewer-nav { display: none; }
  .zoom-controls { width: 100%; justify-content: center; }
  #viewer-native { display: none; }
  .viewer-gesture-hint { bottom: 8px; max-width: 92%; text-align: center; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Live exhibition: recovered artwork and source mechanics, a new quiet space. */
:root { --safe-left: max(22px, env(safe-area-inset-left)); --safe-right: max(22px, env(safe-area-inset-right)); }
html { scroll-behavior: smooth; }
body::before { filter: blur(18px) saturate(.65) brightness(.27); transform: scale(1.08); opacity: .52; }
body::after { background: radial-gradient(ellipse at 70% 0%, rgba(var(--accent-rgb), .065), transparent 65%), linear-gradient(180deg, #05060822, #040507f5 85vh); }
.archive-main { width: min(1780px, 100%); padding: clamp(105px, 14vh, 155px) clamp(32px, 6vw, 116px) 18vh max(122px, 8vw); }
.art-grid { gap: clamp(20px, 3.1vw, 54px); grid-auto-rows: 3px; align-items: start; }
.art-card { border: 1px solid #ffffff1f; border-radius: 2px; background: #090b10; box-shadow: 0 38px 70px -25px #000e, 0 3px 8px #0008, 0 0 0 6px #ffffff02; transition: border-color .4s, box-shadow .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
.art-card::after, .art-card.is-featured::after { inset: 0; border: 1px solid #ffffff0b; border-image: none; filter: none; opacity: 1; box-shadow: inset 0 0 0 1px #0005; }
.art-card:nth-child(5n+2) { box-shadow: 0 38px 70px -25px #000e, 0 0 0 8px #030407, 0 0 0 9px #ffffff10; }
.art-card:nth-child(7n+1) { box-shadow: 0 48px 110px -30px #000, 0 0 50px -30px rgba(var(--accent-rgb), .3); }
.art-card:hover, .art-card:focus-visible { transform: translateY(-5px); border-color: #ffffff85; box-shadow: 0 45px 95px -25px #000, 0 0 0 1px #ffffff28; }
.art-card picture { width: 100%; height: 100%; }
.art-card img { transition: opacity .4s ease; }
.art-card.is-saved .art-saved-mark { display: block; position: absolute; z-index: 4; right: 12px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #fff6ca; font-size: 0; box-shadow: 0 0 15px #ffd58a99; }
.archive-header { left: max(20px, env(safe-area-inset-left)); gap: 12px; padding: 10px 7px; border-color: #ffffff0e; background: #04060888; box-shadow: 0 20px 55px #0006; }
.world-nav { gap: 10px; }
.world-button { width: 42px; height: 42px; background: #111; filter: none; border: 1px solid #ffffff1c; isolation: isolate; }
.world-icon { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.world-icon img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.72); transition: filter .4s, transform .5s; }
.world-name { display: none; }
.world-button::after { inset: -5px; border-color: transparent; }
.world-button[aria-current="page"] { background: none; box-shadow: 0 0 24px rgba(var(--accent-rgb), .15); }
.world-button[aria-current="page"]::after { border-color: #ffffff88; }
.world-button[aria-current="page"] img, .world-button:hover img { filter: saturate(1) brightness(1); transform: scale(1.08); }
.nexus-link, .surprise-button { width: 42px; height: 42px; color: #ffffff91; }
.collection-toolbar { position: absolute; z-index: 8; top: 26px; right: clamp(32px,6vw,116px); display: flex; align-items: center; gap: 16px; }
.collection-tabs, .collection-search { display: flex; align-items: center; gap: 4px; border: 1px solid #ffffff10; border-radius: 30px; background: #07090b88; padding: 5px; backdrop-filter: blur(16px); }
.collection-tabs button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #ffffff7a; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.collection-tabs button[aria-pressed="true"] { color: #fff; background: #ffffff0c; }
.collection-tabs button[hidden], button[hidden] { display: none; }
#saved-count, #aside-count { position: absolute; right: 3px; top: 2px; font-size: 9px; color: #d4ccba; }
#saved-count:empty, #aside-count:empty { display: none; }
.collection-search { padding: 0 12px; height: 54px; gap: 8px; }
.collection-search>span[aria-hidden] { font-size: 25px; color: #ffffff80; }
#art-search { width: 72px; max-width: 20vw; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; transition: width .3s; }
#art-search:focus { width: 160px; max-width: 26vw; }
.light-orbit { position: absolute; z-index: -1; top: 60px; left: 30%; width: 52%; height: 100px; border-top: 1px solid rgba(var(--accent-rgb), .1); border-radius: 50%; transform: rotate(-7deg); filter: blur(.5px); pointer-events: none; }
.world-atmosphere { top: 20vh; height: 76vh; opacity: .55; animation: atmospheric-breath 16s ease-in-out infinite alternate; }
@keyframes atmospheric-breath { to { opacity: .22; transform: translate3d(0,18px,0); } }
.icon { display: block; width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.load-more { display: grid; place-items: center; width: 56px; height: 56px; min-width: 0; padding: 0; border-color: #ffffff1c; background: #080b1070; }
.load-more-shell { margin-top: 70px; }
.review-banner { display: flex; position: relative; justify-content: flex-end; margin-bottom: 24px; }
.review-banner[hidden] { display: none; }
.review-actions { display: flex; gap: 8px; }
.review-actions button { border: 1px solid #ffffff20; background: #07090b; color: #ddd; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; }
.viewer-stage { inset: 0; border: 0; border-radius: 0; grid-template-rows: minmax(0,1fr); background: #020305; }
.viewer-canvas-shell { grid-row: 1; grid-column: 1; background: #020305; }
.viewer-header, .viewer-footer { position: absolute; border: 1px solid #ffffff13; border-radius: 30px; min-height: 54px; padding: 5px; background: #050709b3; backdrop-filter: blur(20px); box-shadow: 0 8px 32px #0005; }
.viewer-header { top: var(--safe-top); right: var(--safe-right); }
.viewer-footer { bottom: var(--safe-bottom); left: 50%; transform: translateX(-50%); gap: 18px; }
.viewer-header-actions, .viewer-nav, .zoom-controls { gap: 3px; }
.viewer-download, .viewer-copy-link, .viewer-header button, .viewer-footer button { width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; font-weight: 400; }
.viewer-header button:hover, .viewer-footer button:hover, .viewer-download:hover { background: #ffffff10; }
.viewer-save[aria-pressed="true"] { color: #f7d9a0; background: #f7d9a014; }
.viewer-save[aria-pressed="true"] .icon { fill: #f7d9a027; }
.viewer-nav { padding-right: 12px; border-right: 1px solid #ffffff19; }
.viewer-loading { background: #020305; }
.viewer-loading.is-error .viewer-loading-signal { border-color: #d98768; animation: none; }
.navigator { bottom: 100px !important; right: 24px !important; opacity: .6 !important; }
.navigator .displayregion { border: 1px solid #e8dec4a0 !important; background: #e8dec40a !important; }
/* The recovery adapter updates download disclosure; its accessible name remains intact. */
#viewer-download { font-size: 0 !important; letter-spacing: 0; }
#viewer-download .icon { display: none; }
#viewer-download::before { content: ''; display: block; width: 19px; height: 19px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 16v5h16v-5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #fff !important; outline-offset: 5px; }
button:disabled { opacity: .28; cursor: default; }
@media(max-width: 980px) {
 .archive-header { top: auto; bottom: max(16px,env(safe-area-inset-bottom)); left: 50%; right: auto; width: max-content; max-width: calc(100vw - 24px); transform: translateX(-50%); border-radius: 50px; display: flex; gap: 8px; padding: 8px; overflow: visible; }
 .world-nav { display: flex; gap: 9px; }
 .world-button, .nexus-link, .surprise-button { width: 38px; height: 38px; flex: 0 0 38px; }
 .archive-main { padding: 112px 32px 150px; }
 .art-grid { gap: 26px; grid-template-columns: repeat(8,minmax(0,1fr)); }
 .collection-toolbar { right: 32px; top: 24px; }
 .viewer-copy-link { display: grid; }
}
@media(max-width:620px) {
 :root { --safe-left: max(12px,env(safe-area-inset-left)); --safe-right: max(12px,env(safe-area-inset-right)); }
 .archive-main { padding: 100px 16px 155px; }
 .art-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
 .collection-toolbar { top: 20px; right: 16px; left: 16px; justify-content: space-between; gap: 8px; }
 .collection-tabs, .collection-search { height: 48px; }
 .collection-tabs button { width: 38px; height: 38px; }
 #art-search { width: 38px; max-width: 18vw; }
 #art-search:focus { width: 95px; max-width: 26vw; }
 .archive-header { width: calc(100vw - 24px); max-width: 420px; display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 2px; padding: 6px; }
 .world-nav { display: flex; justify-content: flex-start; gap: 4px; min-width: 0; width: 100%; overflow-x: auto; padding: 4px; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
 .world-nav::-webkit-scrollbar { display: none; }
 .world-button { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: transparent; border: 0; }
 .world-button .world-icon { inset: 6px; }
 .world-button::after { inset: 2px; }
 .nexus-link, .surprise-button { width: 44px; height: 44px; flex-basis: 44px; }
 .nexus-link .icon, .surprise-button .icon { width: 17px; }
 .viewer-header { width: auto; min-height: 48px; }
 .viewer-header-actions { width: auto; }
 .viewer-footer { gap: 6px; width: max-content; max-width: calc(100vw - 16px); }
 .viewer-header button, .viewer-download, .viewer-footer button { width: 38px; min-height: 40px; }
 .viewer-nav { display: flex; padding-right: 4px; }
 .zoom-controls { width: auto; }
 #viewer-native { display: grid; }
 .viewer-copy-link { display: grid; }
 .navigator { bottom: 92px !important; right: 12px !important; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Approved quotation pause after its artwork anchor; separate artist signature. */
.mckenna-interlude {
  background: #000;
  color: #fff;
  margin-top: clamp(20px, 3.1vw, 54px);
  min-height: min(88vh, 780px);
  padding: clamp(100px, 20vh, 220px) clamp(26px, 6vw, 110px);
  display: grid;
  align-content: center;
  scroll-margin-top: 0;
}
.mckenna-interlude blockquote { margin: 0 auto; width: min(100%, 790px); }
.mckenna-interlude p { margin: 0; font: 400 clamp(23px, 2.35vw, 42px)/1.48 Georgia, 'Times New Roman', serif; letter-spacing: -.018em; }
.mckenna-interlude footer { margin-top: 32px; font-size: 12px; line-height: 1.6; letter-spacing: .035em; }
.mckenna-interlude a { color: #fff; text-decoration: none; text-underline-offset: 5px; }
.mckenna-interlude a:hover, .mckenna-interlude a:focus-visible { text-decoration: underline; }
.mckenna-interlude a:focus-visible { outline: 1px solid #fff; outline-offset: 7px; }
.artist-alias { display: block; padding: 70px 0 0; text-align: right; color: #fff; font-size: 12px; letter-spacing: .045em; }
@media (max-width: 620px) {
 .mckenna-interlude { min-height: 76vh; margin-top: 18px; padding: 110px 25px; }
 .mckenna-interlude footer { margin-top: 28px; }
 .artist-alias { padding-top: 48px; }
}

/* Two exact, untouched panels form one continuous exhibition thumbnail. */
.art-card .panorama-preview { display:flex; width:100%; height:100%; overflow:hidden; }
.art-card .panorama-preview img { position:static; flex-shrink:0; height:100%; object-fit:fill; }
#viewer-download[hidden] { display:none !important; }
