/* CINNANA — Curiosities gallery cabinet */

.curiosities-intro {
  display: grid;
  gap: 0.55rem;
}

.curiosities-intro p {
  margin: 0;
}

.curiosities-intro p:last-child {
  color: var(--accent-deep);
  font-family: "DM Mono", monospace;
  font-size: 0.86rem;
}

.curiosity-feature-solo {
  grid-template-columns: minmax(0, 1fr);
}

.curiosity-feature-solo .curiosity-feature-card {
  min-height: 0;
}

.curiosity-gallery-cabinet {
  overflow: hidden;
}

.curiosity-gallery-drawers {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.curiosity-gallery-drawers .curiosity-drawer {
  overflow: visible;
}

.curiosity-gallery-drawers .curiosity-drawer summary {
  grid-template-columns: 2.8rem 2.8rem minmax(0, 1fr) 2rem;
}

.curiosity-gallery-drawers .drawer-heading small {
  max-width: 76ch;
}

.curiosity-gallery-drawers .curiosity-drawer[open] {
  transform: translateY(0.15rem);
  box-shadow:
    0 19px 35px rgba(76, 22, 41, 0.13),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.curiosity-gallery-drawers .drawer-inside {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  background:
    linear-gradient(rgba(255, 248, 240, 0.92), rgba(255, 248, 240, 0.92)),
    repeating-linear-gradient(
      0deg,
      transparent 0 26px,
      rgba(101, 23, 43, 0.05) 26px 27px
    );
  border-top: 1px solid rgba(101, 23, 43, 0.18);
  animation: curiosityDrawerPull 260ms ease-out both;
}

.curiosity-gallery-drawers .drawer-inside::before,
.curiosity-gallery-drawers .drawer-inside::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.curiosity-gallery-drawers .drawer-inside::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.36), transparent 16%, transparent 84%, rgba(80, 37, 42, 0.05));
  mix-blend-mode: soft-light;
}

.curiosity-gallery-drawers .drawer-inside::after {
  right: 0.65rem;
  bottom: 0.65rem;
  width: 2.2rem;
  height: 2.2rem;
  border-right: 1px solid rgba(101, 23, 43, 0.2);
  border-bottom: 1px solid rgba(101, 23, 43, 0.2);
}

.drawer-gallery-heading {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  color: rgba(77, 28, 49, 0.7);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.drawer-gallery-heading small {
  font: inherit;
  opacity: 0.72;
}

.curiosity-photo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.curiosity-photo-card {
  min-width: 0;
  margin: 0;
  padding: 0.55rem 0.55rem 0.65rem;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(101, 23, 43, 0.18);
  border-radius: 0.45rem;
  box-shadow: 3px 5px 0 rgba(76, 22, 41, 0.08);
  transform: rotate(-0.25deg);
}

.curiosity-photo-card:nth-child(even) {
  transform: rotate(0.35deg);
}

.curiosity-photo-button {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #4d1c31;
  border: 0;
  border-radius: 0.25rem;
  cursor: zoom-in;
}

.curiosity-photo-button:focus-visible {
  outline: 3px solid rgba(157, 36, 63, 0.55);
  outline-offset: 3px;
}

.curiosity-photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.curiosity-photo-button:hover img,
.curiosity-photo-button:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}

.curiosity-photo-corner {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  color: rgba(255, 246, 237, 0.95);
  background: rgba(77, 28, 49, 0.72);
  border: 1px solid rgba(255, 246, 237, 0.4);
  font-size: 0.72rem;
}

.curiosity-photo-card figcaption {
  min-height: 2.8em;
  padding: 0.55rem 0.15rem 0;
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 0.72rem;
  line-height: 1.42;
  text-align: center;
}

.curiosity-lightbox[hidden] {
  display: none !important;
}

.curiosity-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(0.6rem, 3vw, 2rem);
}

.curiosity-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(39, 14, 26, 0.86);
  border: 0;
  cursor: zoom-out;
  backdrop-filter: blur(9px);
}

.curiosity-lightbox-panel {
  position: relative;
  z-index: 1;
  overflow: auto;
  width: min(100%, 68rem);
  max-height: calc(100vh - 1.2rem);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 248, 240, 0.97), rgba(255, 248, 240, 0.97)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(101, 23, 43, 0.05) 28px 29px);
  border: 1px solid rgba(255, 246, 237, 0.45);
  border-radius: 0.8rem;
  box-shadow: 0 28px 90px rgba(26, 5, 15, 0.62);
}

.curiosity-lightbox-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 2.5rem 0.7rem 0;
  color: rgba(77, 28, 49, 0.66);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.curiosity-lightbox-close {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #fff6ed;
  background: #65172b;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.35rem;
}

.curiosity-lightbox-image-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 12rem;
  max-height: 68vh;
  background: #321624;
  border: 1px solid rgba(101, 23, 43, 0.22);
}

.curiosity-lightbox-image-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.curiosity-lightbox-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.09) 48%, transparent 60%);
}

#curiosity-lightbox-caption {
  margin: 0;
  padding: 0.9rem 0.1rem 0.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-align: center;
}

.curiosity-lightbox-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.curiosity-lightbox-controls button {
  padding: 0.7rem 0.9rem;
  color: #fff6ed;
  background: #65172b;
  border: 1px solid rgba(101, 23, 43, 0.2);
  border-radius: 999px;
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

body.curiosity-lightbox-open {
  overflow: hidden;
}

.brain-aquarium {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.46), transparent 8rem),
    linear-gradient(145deg, rgba(218, 241, 238, 0.72), rgba(255, 230, 237, 0.7));
}

.brain-aquarium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 75%, rgba(255,255,255,0.65) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 25%, rgba(255,255,255,0.55) 0 3px, transparent 4px),
    radial-gradient(circle at 46% 82%, rgba(255,255,255,0.58) 0 2px, transparent 3px);
  background-size: 90px 90px, 130px 130px, 110px 110px;
  animation: aquariumBubbles 13s linear infinite;
}

.brain-aquarium .section-title,
.brain-aquarium .brain-bubbles {
  position: relative;
  z-index: 1;
}

.brain-aquarium-note {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 0.78rem;
  font-style: italic;
}

.brain-bubbles {
  align-items: center;
}

.brain-bubbles span {
  position: relative;
  border-radius: 999px 999px 52% 48%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    0 5px 10px rgba(77, 28, 49, 0.08);
  animation: brainBubbleFloat 4.8s ease-in-out infinite;
}

.brain-bubbles span:nth-child(2n) {
  animation-delay: -1.1s;
}

.brain-bubbles span:nth-child(3n) {
  animation-delay: -2.2s;
}

.brain-bubbles span:nth-child(1) { background: #ffd7df; }
.brain-bubbles span:nth-child(2) { background: #ffe6bd; }
.brain-bubbles span:nth-child(3) { background: #fff1aa; }
.brain-bubbles span:nth-child(4) { background: #cdeecf; }
.brain-bubbles span:nth-child(5) { background: #cce8f5; }
.brain-bubbles span:nth-child(6) { background: #ddd5f8; }
.brain-bubbles span:nth-child(7) { background: #f4cfeb; }
.brain-bubbles span:nth-child(8) { background: #f2d4c1; }

@keyframes curiosityDrawerPull {
  from {
    opacity: 0;
    transform: translateY(-0.45rem) scaleY(0.97);
    transform-origin: top;
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes aquariumBubbles {
  from { background-position: 0 110px, 0 170px, 0 130px; }
  to { background-position: 0 -110px, 0 -170px, 0 -130px; }
}

@keyframes brainBubbleFloat {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-4px) rotate(0.4deg); }
}

@media (max-width: 820px) {
  .curiosity-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curiosity-photo-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 28rem);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .curiosity-gallery-drawers .curiosity-drawer summary {
    grid-template-columns: 2.2rem 2.2rem minmax(0, 1fr) 1.6rem;
    gap: 0.55rem;
  }

  .drawer-gallery-heading {
    display: grid;
    gap: 0.25rem;
  }

  .curiosity-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .curiosity-photo-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .curiosity-lightbox-controls {
    flex-direction: column;
  }

  .curiosity-lightbox-controls button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .curiosity-drawer-top-button {
    transition: none;
  }

  .curiosity-gallery-drawers .curiosity-drawer.is-drawer-return-target > summary {
    animation: none;
  }

  .curiosity-gallery-drawers .drawer-inside,
  .brain-aquarium::before,
  .brain-bubbles span,
  .curiosity-photo-button img {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================
   DARK WOOD APOTHECARY DRAWERS
   ========================================================== */

.curiosity-gallery-cabinet {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1rem, 2.4vw, 1.7rem);
  color: #f7e8d1;
  background:
    radial-gradient(circle at 14% 12%, rgba(210, 135, 79, 0.13), transparent 18rem),
    radial-gradient(circle at 84% 80%, rgba(25, 4, 4, 0.42), transparent 27rem),
    repeating-linear-gradient(
      3deg,
      rgba(255,255,255,0.017) 0 1px,
      transparent 1px 7px
    ),
    repeating-linear-gradient(
      93deg,
      rgba(20, 3, 2, 0.14) 0 2px,
      transparent 2px 38px
    ),
    linear-gradient(145deg, #32130f 0%, #1f0a08 46%, #130605 100%);
  border: 1px solid rgba(20, 4, 3, 0.78);
  border-radius: 0.85rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 221, 174, 0.15),
    inset 0 -16px 28px rgba(8, 1, 1, 0.36),
    0 22px 46px rgba(55, 16, 13, 0.2);
}

.curiosity-gallery-cabinet::before,
.curiosity-gallery-cabinet::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.curiosity-gallery-cabinet::before {
  inset: 0.55rem;
  border: 1px solid rgba(191, 125, 70, 0.18);
  border-radius: 0.58rem;
  box-shadow:
    inset 0 0 0 4px rgba(4, 1, 1, 0.13),
    inset 0 0 28px rgba(0, 0, 0, 0.25);
}

.curiosity-gallery-cabinet::after {
  inset: 0;
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 22% 15%, transparent 0 18%, rgba(242, 180, 111, 0.16) 19% 19.5%, transparent 20%),
    radial-gradient(ellipse at 72% 66%, transparent 0 25%, rgba(242, 180, 111, 0.12) 26% 26.5%, transparent 27%);
  filter: blur(0.2px);
}

.curiosity-gallery-cabinet .curiosity-section-title {
  position: relative;
  margin: 0 0 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  color: #f4dec4;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025), transparent 18%, transparent 82%, rgba(0,0,0,0.13)),
    repeating-linear-gradient(4deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #4a2018, #2b100d 58%, #210b09);
  border: 1px solid rgba(202, 135, 76, 0.25);
  border-radius: 0.55rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 225, 187, 0.12),
    inset 0 -8px 18px rgba(3, 0, 0, 0.2),
    0 8px 18px rgba(0,0,0,0.18);
}

.curiosity-gallery-cabinet .curiosity-section-title .eyebrow {
  color: #c99465;
}

.curiosity-gallery-cabinet .curiosity-section-title h2 {
  color: #fff0dc;
  text-shadow: 0 2px 0 rgba(30, 4, 3, 0.54);
}

.curiosity-gallery-cabinet .curiosity-section-title p {
  color: rgba(247, 226, 204, 0.76);
}

.curiosity-gallery-drawers {
  gap: 0.9rem;
}

.curiosity-gallery-drawers .curiosity-drawer {
  position: relative;
  overflow: visible;
  margin: 0;
  color: #f7e6ce;
  background:
    repeating-linear-gradient(
      3deg,
      rgba(255,255,255,0.018) 0 1px,
      transparent 1px 7px
    ),
    linear-gradient(145deg, #3b1712, #220c09 63%, #170706);
  border: 1px solid rgba(13, 2, 2, 0.92);
  border-radius: 0.54rem;
  box-shadow:
    0 9px 0 #100403,
    0 13px 18px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255, 221, 177, 0.12);
  transition:
    transform 230ms ease,
    box-shadow 230ms ease;
}

.curiosity-gallery-drawers .curiosity-drawer::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(205, 139, 77, 0.13);
  border-radius: 0.33rem;
}

.curiosity-gallery-drawers .curiosity-drawer > summary {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 6.35rem;
  padding: 0.9rem 1rem;
  color: #f8e8d0;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(227, 151, 88, 0.11), transparent 19rem),
    linear-gradient(90deg, rgba(255,255,255,0.035), transparent 15%, transparent 78%, rgba(0,0,0,0.17)),
    repeating-linear-gradient(
      5deg,
      rgba(255,255,255,0.018) 0 1px,
      transparent 1px 7px
    ),
    repeating-linear-gradient(
      91deg,
      rgba(25, 4, 3, 0.13) 0 2px,
      transparent 2px 46px
    ),
    linear-gradient(145deg, #5a281e 0%, #3b1712 49%, #2b0e0b 100%);
  border-radius: 0.48rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 227, 190, 0.14),
    inset 0 -12px 18px rgba(10, 1, 1, 0.24);
  cursor: pointer;
}

.curiosity-gallery-drawers .curiosity-drawer > summary::before {
  content: "";
  position: absolute;
  inset: 0.44rem;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(214, 150, 88, 0.15);
  border-radius: 0.28rem;
  box-shadow:
    inset 0 0 0 3px rgba(22, 5, 3, 0.08),
    inset 0 0 16px rgba(5, 1, 1, 0.12);
}

.curiosity-gallery-drawers .curiosity-drawer > summary::after {
  content: "";
  position: absolute;
  left: 47%;
  bottom: 0.45rem;
  width: 6%;
  min-width: 2.7rem;
  height: 0.22rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #d1a066, #7b4b28);
  box-shadow:
    0 1px 0 #2b130a,
    inset 0 1px 0 rgba(255, 237, 196, 0.48);
  opacity: 0.72;
}

.curiosity-gallery-drawers .curiosity-drawer > summary:hover {
  background:
    radial-gradient(ellipse at 18% 20%, rgba(235, 162, 94, 0.15), transparent 19rem),
    linear-gradient(90deg, rgba(255,255,255,0.045), transparent 15%, transparent 78%, rgba(0,0,0,0.15)),
    repeating-linear-gradient(5deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(91deg, rgba(25, 4, 3, 0.13) 0 2px, transparent 2px 46px),
    linear-gradient(145deg, #613026 0%, #411b15 49%, #2d100c 100%);
}

.curiosity-gallery-drawers .drawer-number {
  display: grid;
  place-items: center;
  min-width: 2.25rem;
  min-height: 1.65rem;
  color: #d2a168;
  background:
    linear-gradient(145deg, rgba(237, 190, 124, 0.13), rgba(53, 22, 10, 0.09)),
    #32150f;
  border: 1px solid rgba(201, 143, 80, 0.34);
  border-radius: 0.2rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 180, 0.13),
    inset 0 -2px 4px rgba(0,0,0,0.22);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.curiosity-gallery-drawers .drawer-carving {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #1d0907;
  background:
    radial-gradient(circle at 35% 28%, rgba(211, 137, 78, 0.12), transparent 42%),
    linear-gradient(145deg, #5e2b20, #32130e);
  border: 1px solid rgba(213, 147, 83, 0.16);
  border-radius: 50%;
  box-shadow:
    inset 2px 2px 4px rgba(246, 184, 118, 0.12),
    inset -3px -4px 6px rgba(7, 1, 1, 0.36),
    0 2px 0 rgba(9, 2, 1, 0.66);
  text-shadow: none;
}

.curiosity-gallery-drawers .drawer-carving::before {
  content: "";
  position: absolute;
  inset: 0.3rem;
  border: 1px solid rgba(21, 5, 3, 0.5);
  border-radius: inherit;
  box-shadow:
    1px 1px 0 rgba(215, 149, 87, 0.08),
    inset 1px 1px 2px rgba(5, 1, 1, 0.34);
}

.curiosity-gallery-drawers .drawer-carving svg {
  position: relative;
  z-index: 1;
  width: 1.78rem;
  height: 1.78rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(1px 1px 0 rgba(205, 135, 76, 0.16))
    drop-shadow(-1px -1px 0 rgba(8, 1, 1, 0.42));
}

.curiosity-gallery-drawers .drawer-heading strong {
  color: #fff0dc;
  text-shadow: 0 2px 0 rgba(18, 2, 2, 0.55);
}

.curiosity-gallery-drawers .drawer-heading small {
  color: rgba(244, 218, 191, 0.68);
}

.curiosity-gallery-drawers .drawer-toggle {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  color: #2d120b;
  background:
    radial-gradient(circle at 34% 28%, #e4bd7e, #a36a35 57%, #5d361d 100%);
  border: 1px solid #4a2513;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 1px rgba(255, 238, 198, 0.65),
    inset 0 -3px 4px rgba(70, 34, 14, 0.46),
    0 2px 0 #1b0905,
    0 4px 8px rgba(0,0,0,0.24);
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 1px rgba(255, 220, 165, 0.3);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.curiosity-gallery-drawers .curiosity-drawer[open] {
  transform: translateY(0.28rem);
  box-shadow:
    0 4px 0 #100403,
    0 10px 23px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255, 221, 177, 0.12);
}

.curiosity-gallery-drawers .curiosity-drawer[open] > summary {
  border-radius: 0.48rem 0.48rem 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 227, 190, 0.14),
    inset 0 -16px 21px rgba(10, 1, 1, 0.32),
    0 7px 12px rgba(0,0,0,0.28);
}

.curiosity-gallery-drawers .curiosity-drawer[open] .drawer-toggle {
  transform: rotate(45deg) scale(0.96);
  filter: brightness(0.93);
}

.curiosity-gallery-drawers .drawer-inside {
  position: relative;
  overflow: hidden;
  margin: 0 0.55rem 0.45rem;
  padding: 1rem;
  color: #f0dfc8;
  background:
    radial-gradient(circle at 16% 14%, rgba(211, 68, 96, 0.08), transparent 16rem),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.012) 0 1px,
      transparent 1px 5px
    ),
    linear-gradient(145deg, #351018, #24090e 56%, #160406);
  border: 1px solid rgba(8, 1, 2, 0.88);
  border-top: 0;
  border-radius: 0 0 0.38rem 0.38rem;
  box-shadow:
    inset 13px 0 18px rgba(0,0,0,0.24),
    inset -13px 0 18px rgba(0,0,0,0.24),
    inset 0 12px 18px rgba(0,0,0,0.34),
    0 5px 0 #120403;
  animation: woodenDrawerPull 300ms cubic-bezier(0.2, 0.75, 0.24, 1) both;
}

.curiosity-gallery-drawers .drawer-inside::before {
  inset: 0.42rem;
  z-index: 0;
  background: none;
  border: 1px solid rgba(176, 95, 74, 0.18);
  box-shadow: inset 0 0 22px rgba(0,0,0,0.24);
}

.curiosity-gallery-drawers .drawer-inside::after {
  right: 0.72rem;
  bottom: 0.72rem;
  width: 2.4rem;
  height: 2.4rem;
  border-right: 1px solid rgba(186, 112, 79, 0.22);
  border-bottom: 1px solid rgba(186, 112, 79, 0.22);
}

.curiosity-gallery-drawers .drawer-gallery-heading {
  color: rgba(222, 174, 132, 0.75);
}

.curiosity-gallery-drawers .curiosity-photo-card {
  background:
    linear-gradient(rgba(255, 248, 238, 0.965), rgba(255, 248, 238, 0.965)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(85, 32, 37, 0.045) 23px 24px);
  border-color: rgba(72, 24, 24, 0.3);
  box-shadow:
    3px 5px 0 rgba(7, 1, 2, 0.25),
    0 10px 20px rgba(0,0,0,0.12);
}

.curiosity-gallery-drawers .curiosity-photo-corner {
  color: #f7e4cd;
  background: rgba(53, 13, 19, 0.82);
  border-color: rgba(223, 168, 118, 0.46);
}

@keyframes woodenDrawerPull {
  from {
    opacity: 0;
    transform: perspective(800px) translateY(-0.7rem) rotateX(-2deg) scaleY(0.97);
    transform-origin: top;
  }

  to {
    opacity: 1;
    transform: perspective(800px) translateY(0) rotateX(0) scaleY(1);
  }
}

@media (max-width: 620px) {
  .curiosity-gallery-cabinet {
    padding: 0.75rem;
  }

  .curiosity-gallery-drawers .curiosity-drawer > summary {
    min-height: 5.4rem;
    padding: 0.75rem 0.7rem;
  }

  .curiosity-gallery-drawers .drawer-carving {
    width: 2.45rem;
    height: 2.45rem;
  }

  .curiosity-gallery-drawers .drawer-carving svg {
    width: 1.42rem;
    height: 1.42rem;
  }

  .curiosity-gallery-drawers .drawer-toggle {
    width: 1.75rem;
    height: 1.75rem;
  }

  .curiosity-gallery-drawers .drawer-inside {
    margin-inline: 0.35rem;
    padding: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .curiosity-gallery-drawers .curiosity-drawer,
  .curiosity-gallery-drawers .drawer-toggle,
  .curiosity-gallery-drawers .drawer-inside {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================
   FULL WOOD CABINET — V3
   Final high-specificity overrides
   ========================================================== */

.curiosities-page section.curiosity-cabinet.curiosity-gallery-cabinet {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  padding: clamp(1.1rem, 2.8vw, 2rem) !important;
  color: #f6e2c8 !important;
  background:
    radial-gradient(ellipse at 16% 10%, rgba(235, 168, 100, 0.12), transparent 20rem),
    radial-gradient(ellipse at 74% 82%, rgba(7, 1, 1, 0.45), transparent 33rem),
    repeating-linear-gradient(
      4deg,
      rgba(255, 225, 176, 0.026) 0 1px,
      transparent 1px 8px
    ),
    repeating-linear-gradient(
      94deg,
      rgba(13, 2, 1, 0.18) 0 2px,
      transparent 2px 42px
    ),
    linear-gradient(145deg, #4b2119 0%, #2d110d 42%, #1a0806 100%) !important;
  border: 1px solid #160604 !important;
  border-radius: 0.9rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 222, 176, 0.17),
    inset 0 -22px 38px rgba(4, 0, 0, 0.38),
    inset 18px 0 30px rgba(0, 0, 0, 0.15),
    inset -18px 0 30px rgba(0, 0, 0, 0.15),
    0 24px 50px rgba(48, 12, 9, 0.26) !important;
}

.curiosities-page section.curiosity-cabinet.curiosity-gallery-cabinet::before {
  inset: 0.55rem !important;
  z-index: -1;
  border: 1px solid rgba(209, 144, 82, 0.24) !important;
  border-radius: 0.58rem !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.018), transparent 15%, transparent 85%, rgba(0,0,0,0.12)),
    repeating-linear-gradient(
      2deg,
      transparent 0 18px,
      rgba(235, 170, 102, 0.024) 18px 19px
    ) !important;
  box-shadow:
    inset 0 0 0 5px rgba(5, 1, 1, 0.18),
    inset 0 0 34px rgba(0, 0, 0, 0.28) !important;
}

.curiosities-page section.curiosity-cabinet.curiosity-gallery-cabinet::after {
  inset: 0 !important;
  z-index: -1;
  opacity: 0.32 !important;
  background:
    radial-gradient(ellipse at 20% 18%, transparent 0 17%, rgba(225, 151, 86, 0.13) 17.5% 18%, transparent 18.5%),
    radial-gradient(ellipse at 72% 60%, transparent 0 26%, rgba(225, 151, 86, 0.1) 26.5% 27%, transparent 27.5%),
    radial-gradient(ellipse at 48% 92%, transparent 0 13%, rgba(14, 2, 1, 0.22) 14% 16%, transparent 17%) !important;
}

/* The intro/blurb is now the carved top panel of the cabinet. */
.curiosities-page .curiosity-gallery-cabinet > .curiosity-section-title {
  position: relative !important;
  overflow: hidden;
  margin: 0 0 1.1rem !important;
  padding: clamp(1.15rem, 2.5vw, 1.7rem) !important;
  color: #f6e3ca !important;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(239, 173, 104, 0.13), transparent 18rem),
    linear-gradient(90deg, rgba(255,255,255,0.035), transparent 18%, transparent 82%, rgba(0,0,0,0.18)),
    repeating-linear-gradient(
      4deg,
      rgba(255, 229, 185, 0.022) 0 1px,
      transparent 1px 8px
    ),
    repeating-linear-gradient(
      94deg,
      rgba(19, 3, 2, 0.14) 0 2px,
      transparent 2px 46px
    ),
    linear-gradient(145deg, #633126 0%, #452019 47%, #2c0f0c 100%) !important;
  border: 1px solid rgba(18, 4, 2, 0.94) !important;
  border-radius: 0.58rem !important;
  box-shadow:
    0 8px 0 #160604,
    0 14px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 225, 181, 0.16),
    inset 0 -13px 20px rgba(7, 1, 1, 0.25) !important;
}

.curiosities-page .curiosity-gallery-cabinet > .curiosity-section-title::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  pointer-events: none;
  border: 1px solid rgba(221, 155, 91, 0.18);
  border-radius: 0.32rem;
  box-shadow:
    inset 1px 1px 0 rgba(255, 220, 171, 0.055),
    inset -1px -1px 0 rgba(11, 2, 1, 0.38);
}

.curiosities-page .curiosity-gallery-cabinet > .curiosity-section-title::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -4.5rem;
  width: 15rem;
  height: 10rem;
  pointer-events: none;
  border: 1px solid rgba(224, 155, 88, 0.08);
  border-radius: 50%;
  transform: rotate(-13deg);
  box-shadow:
    0 0 0 8px rgba(224, 155, 88, 0.025),
    inset 0 0 0 6px rgba(14, 3, 2, 0.04);
}

.curiosities-page .curiosity-gallery-cabinet > .curiosity-section-title .eyebrow {
  position: relative;
  z-index: 1;
  color: #d8a168 !important;
  text-shadow: 0 1px 0 rgba(20, 4, 2, 0.65);
}

.curiosities-page .curiosity-gallery-cabinet > .curiosity-section-title h2 {
  position: relative;
  z-index: 1;
  color: #fff0da !important;
  text-shadow:
    0 2px 0 rgba(28, 4, 2, 0.76),
    0 5px 12px rgba(10, 1, 1, 0.23) !important;
}

.curiosities-page .curiosity-gallery-cabinet > .curiosity-section-title p {
  position: relative;
  z-index: 1;
  color: rgba(247, 224, 198, 0.79) !important;
}

/* Stronger wooden drawer faces. */
.curiosities-page .curiosity-gallery-cabinet .curiosity-gallery-drawers .curiosity-drawer {
  color: #f6e3ca !important;
  background:
    repeating-linear-gradient(
      4deg,
      rgba(255, 230, 184, 0.02) 0 1px,
      transparent 1px 8px
    ),
    linear-gradient(145deg, #4d2119, #2b0f0c 62%, #190705) !important;
  border-color: #120403 !important;
  box-shadow:
    0 9px 0 #110403,
    0 14px 22px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255, 225, 179, 0.13) !important;
}

.curiosities-page .curiosity-gallery-cabinet .curiosity-gallery-drawers .curiosity-drawer > summary {
  color: #f7e5cb !important;
  background:
    radial-gradient(ellipse at 16% 22%, rgba(235, 164, 95, 0.12), transparent 19rem),
    linear-gradient(90deg, rgba(255,255,255,0.038), transparent 15%, transparent 80%, rgba(0,0,0,0.18)),
    repeating-linear-gradient(
      5deg,
      rgba(255, 230, 184, 0.018) 0 1px,
      transparent 1px 8px
    ),
    repeating-linear-gradient(
      94deg,
      rgba(20, 3, 2, 0.14) 0 2px,
      transparent 2px 46px
    ),
    linear-gradient(145deg, #663027 0%, #482019 50%, #30110d 100%) !important;
}

/* Recessed medallions with a pale exposed-grain carving. */
.curiosities-page .curiosity-gallery-drawers .drawer-carving {
  color: #d9a26d !important;
  background:
    radial-gradient(circle at 34% 28%, rgba(240, 180, 111, 0.12), transparent 38%),
    repeating-radial-gradient(
      ellipse at 52% 48%,
      rgba(230, 161, 95, 0.038) 0 2px,
      transparent 2px 7px
    ),
    linear-gradient(145deg, #512219, #2b0e0a) !important;
  border-color: rgba(220, 151, 86, 0.19) !important;
  box-shadow:
    inset 2px 2px 5px rgba(244, 184, 116, 0.08),
    inset -4px -5px 8px rgba(5, 1, 1, 0.44),
    0 2px 0 rgba(9, 2, 1, 0.72) !important;
}

.curiosities-page .curiosity-gallery-drawers .drawer-carving::before {
  inset: 0.28rem !important;
  border-color: rgba(13, 3, 2, 0.64) !important;
  box-shadow:
    1px 1px 0 rgba(237, 171, 105, 0.07),
    inset 1px 1px 3px rgba(4, 1, 1, 0.43),
    inset -1px -1px 0 rgba(228, 155, 91, 0.08) !important;
}

.curiosities-page .curiosity-gallery-drawers .drawer-carving svg {
  color: #dda973 !important;
  stroke: currentColor !important;
  stroke-width: 2.35 !important;
  filter:
    drop-shadow(-1px -1px 0 rgba(255, 213, 157, 0.24))
    drop-shadow(1.35px 1.35px 0 rgba(25, 5, 3, 0.9)) !important;
}

/* A second, faint grain pass through the carved marks. */
.curiosities-page .curiosity-gallery-drawers .drawer-carving svg path,
.curiosities-page .curiosity-gallery-drawers .drawer-carving svg circle {
  vector-effect: non-scaling-stroke;
}

.curiosities-page .curiosity-gallery-drawers .drawer-number {
  color: #d9a36b !important;
  background:
    linear-gradient(145deg, rgba(235, 176, 109, 0.12), rgba(38, 12, 7, 0.08)),
    #32130e !important;
  border-color: rgba(209, 145, 82, 0.35) !important;
}

.curiosities-page .curiosity-gallery-drawers .drawer-heading strong {
  color: #fff0da !important;
}

.curiosities-page .curiosity-gallery-drawers .drawer-heading small {
  color: rgba(244, 217, 187, 0.7) !important;
}

.curiosities-page .curiosity-gallery-drawers .drawer-toggle {
  color: #2b1009 !important;
  background:
    radial-gradient(circle at 34% 28%, #e7c184, #a66b35 58%, #5a321a 100%) !important;
  border-color: #44200f !important;
}

@media (max-width: 620px) {
  .curiosities-page section.curiosity-cabinet.curiosity-gallery-cabinet {
    padding: 0.75rem !important;
  }

  .curiosities-page .curiosity-gallery-cabinet > .curiosity-section-title {
    padding: 1rem !important;
  }
}

/* ==========================================================
   TAPPABLE BRAIN AQUARIUM
   ========================================================== */

.brain-aquarium[data-brain-aquarium] {
  --aquarium-tap-x: 50%;
  --aquarium-tap-y: 55%;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.brain-aquarium[data-brain-aquarium]:focus-visible {
  outline: 2px dashed rgba(101, 23, 43, 0.58);
  outline-offset: 0.35rem;
}

.brain-aquarium[data-brain-aquarium]::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(var(--aquarium-tap-x) - 4.5rem);
  top: calc(var(--aquarium-tap-y) - 4.5rem);
  width: 9rem;
  height: 9rem;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(155, 92, 116, 0.12),
    inset 0 0 1.8rem rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: scale(0.12);
}

.brain-aquarium[data-brain-aquarium].is-aquarium-tapped {
  animation: aquariumGlassThunk 520ms cubic-bezier(0.22, 0.76, 0.24, 1);
}

.brain-aquarium[data-brain-aquarium].is-aquarium-tapped::after {
  animation: aquariumTapRipple 680ms ease-out both;
}

.brain-aquarium[data-brain-aquarium] .brain-bubbles span {
  --aquarium-jump: -1rem;
  --aquarium-tilt: 1.5deg;
  --aquarium-tap-delay: 0ms;
  transform-origin: 50% 90%;
  will-change: transform, filter, box-shadow;
}

.brain-aquarium[data-brain-aquarium] .brain-bubbles span:nth-child(1) {
  --aquarium-jump: -0.82rem;
  --aquarium-tilt: -2deg;
  --aquarium-tap-delay: 0ms;
}

.brain-aquarium[data-brain-aquarium] .brain-bubbles span:nth-child(2) {
  --aquarium-jump: -1.18rem;
  --aquarium-tilt: 1.4deg;
  --aquarium-tap-delay: 28ms;
}

.brain-aquarium[data-brain-aquarium] .brain-bubbles span:nth-child(3) {
  --aquarium-jump: -0.72rem;
  --aquarium-tilt: -1.2deg;
  --aquarium-tap-delay: 54ms;
}

.brain-aquarium[data-brain-aquarium] .brain-bubbles span:nth-child(4) {
  --aquarium-jump: -1.34rem;
  --aquarium-tilt: 2deg;
  --aquarium-tap-delay: 18ms;
}

.brain-aquarium[data-brain-aquarium] .brain-bubbles span:nth-child(5) {
  --aquarium-jump: -0.94rem;
  --aquarium-tilt: -1.7deg;
  --aquarium-tap-delay: 68ms;
}

.brain-aquarium[data-brain-aquarium] .brain-bubbles span:nth-child(6) {
  --aquarium-jump: -1.26rem;
  --aquarium-tilt: 1.1deg;
  --aquarium-tap-delay: 42ms;
}

.brain-aquarium[data-brain-aquarium] .brain-bubbles span:nth-child(7) {
  --aquarium-jump: -0.78rem;
  --aquarium-tilt: -2.2deg;
  --aquarium-tap-delay: 78ms;
}

.brain-aquarium[data-brain-aquarium] .brain-bubbles span:nth-child(8) {
  --aquarium-jump: -1.08rem;
  --aquarium-tilt: 1.8deg;
  --aquarium-tap-delay: 34ms;
}

.brain-aquarium[data-brain-aquarium].is-aquarium-tapped .brain-bubbles span {
  animation:
    aquariumBubbleStartle 760ms
    cubic-bezier(0.18, 0.82, 0.25, 1.18)
    var(--aquarium-tap-delay)
    both;
}

.brain-aquarium[data-brain-aquarium].is-aquarium-tapped .brain-aquarium-note {
  animation: aquariumWarningWiggle 540ms ease both;
}

@keyframes aquariumGlassThunk {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }

  15% {
    transform: translate3d(0, 1px, 0) scale(0.999);
  }

  32% {
    transform: translate3d(-1px, 0, 0);
  }

  49% {
    transform: translate3d(1px, 0, 0);
  }

  68% {
    transform: translate3d(-0.4px, 0, 0);
  }
}

@keyframes aquariumTapRipple {
  0% {
    opacity: 0;
    transform: scale(0.12);
  }

  16% {
    opacity: 0.82;
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes aquariumBubbleStartle {
  0% {
    transform: translateY(0) rotate(-0.4deg) scale(1);
    filter: brightness(1);
  }

  11% {
    transform: translateY(0.12rem) rotate(0) scaleX(1.025) scaleY(0.94);
    filter: brightness(1.02);
  }

  34% {
    transform:
      translateY(var(--aquarium-jump))
      rotate(var(--aquarium-tilt))
      scaleX(0.985)
      scaleY(1.035);
    filter: brightness(1.055);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.72),
      0 11px 15px rgba(77, 28, 49, 0.11);
  }

  55% {
    transform: translateY(0.18rem) rotate(calc(var(--aquarium-tilt) * -0.35)) scaleX(1.015) scaleY(0.97);
  }

  72% {
    transform: translateY(-0.32rem) rotate(calc(var(--aquarium-tilt) * 0.22)) scale(1);
  }

  86% {
    transform: translateY(0.07rem) rotate(-0.2deg) scale(1);
  }

  100% {
    transform: translateY(0) rotate(-0.4deg) scale(1);
    filter: brightness(1);
  }
}

@keyframes aquariumWarningWiggle {
  0%, 100% {
    transform: translateX(0);
  }

  24% {
    transform: translateX(-0.12rem);
  }

  43% {
    transform: translateX(0.1rem);
  }

  61% {
    transform: translateX(-0.05rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brain-aquarium[data-brain-aquarium].is-aquarium-tapped,
  .brain-aquarium[data-brain-aquarium].is-aquarium-tapped::after,
  .brain-aquarium[data-brain-aquarium].is-aquarium-tapped .brain-bubbles span,
  .brain-aquarium[data-brain-aquarium].is-aquarium-tapped .brain-aquarium-note {
    animation: none !important;
  }

  .brain-aquarium[data-brain-aquarium].is-aquarium-tapped {
    box-shadow:
      inset 0 0 0 2px rgba(255,255,255,0.28),
      var(--shadow, 0 12px 28px rgba(76, 31, 47, 0.12));
  }
}

/* ==========================================================
   VINTAGE VANITY MIRROR — CURRENT FIXATION
   ========================================================== */

.curiosities-page .vanity-cabinet {
  margin-top: clamp(7rem, 14vw, 11rem);
  overflow: visible !important;
}

.vintage-fixation-mirror {
  position: relative;
  z-index: 3;
  width: min(92%, 58rem);
  margin:
    clamp(-10.5rem, -13vw, -7.4rem)
    auto
    clamp(1.1rem, 2.4vw, 1.7rem);
  padding-bottom: 1.3rem;
}

.mirror-frame {
  position: relative;
  padding: clamp(0.62rem, 1.4vw, 0.95rem);
  background:
    radial-gradient(ellipse at 50% 4%, rgba(241, 177, 100, 0.16), transparent 18rem),
    repeating-linear-gradient(
      5deg,
      rgba(255, 224, 169, 0.022) 0 1px,
      transparent 1px 7px
    ),
    linear-gradient(
      145deg,
      #6c3527 0%,
      #472017 28%,
      #2a0e0a 70%,
      #160504 100%
    );
  border: 1px solid #130302;
  border-radius:
    47% 47% 1rem 1rem /
    23% 23% 1rem 1rem;
  box-shadow:
    0 9px 0 #130403,
    0 18px 28px rgba(30, 5, 4, 0.28),
    inset 0 1px 0 rgba(255, 225, 177, 0.2),
    inset 0 -14px 22px rgba(4, 0, 0, 0.34);
}

.mirror-frame::before {
  content: "";
  position: absolute;
  inset: 0.34rem;
  pointer-events: none;
  border: 1px solid rgba(225, 158, 91, 0.27);
  border-radius:
    47% 47% 0.72rem 0.72rem /
    22% 22% 0.72rem 0.72rem;
  box-shadow:
    inset 0 0 0 3px rgba(10, 2, 1, 0.18),
    inset 0 0 15px rgba(0, 0, 0, 0.22);
}

.mirror-crown {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: -2.55rem;
  width: clamp(7.5rem, 18vw, 12.5rem);
  height: 3.6rem;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 34%, rgba(242, 183, 112, 0.12), transparent 38%),
    linear-gradient(145deg, #6c3628, #3d1912 58%, #1c0705);
  border: 1px solid #160504;
  border-radius:
    52% 52% 18% 18% /
    82% 82% 22% 22%;
  clip-path: polygon(
    0 100%,
    5% 68%,
    18% 58%,
    25% 25%,
    42% 40%,
    50% 0,
    58% 40%,
    75% 25%,
    82% 58%,
    95% 68%,
    100% 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 223, 169, 0.17),
    inset 0 -8px 12px rgba(3, 0, 0, 0.32),
    0 5px 0 #100302;
}

.mirror-crown::before,
.mirror-crown::after,
.mirror-crown > span::before,
.mirror-crown > span::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(222, 151, 84, 0.28);
  border-radius: 50%;
}

.mirror-crown::before {
  left: 18%;
  top: 40%;
  width: 26%;
  height: 38%;
  transform: rotate(-24deg);
}

.mirror-crown::after {
  right: 18%;
  top: 40%;
  width: 26%;
  height: 38%;
  transform: rotate(24deg);
}

.mirror-crown > span::before {
  left: 40%;
  top: 21%;
  width: 20%;
  height: 52%;
}

.mirror-crown > span::after {
  left: 46%;
  top: 38%;
  width: 8%;
  height: 20%;
  background: rgba(204, 130, 70, 0.13);
  box-shadow:
    0 0 0 3px rgba(20, 4, 2, 0.12),
    inset 0 1px 0 rgba(244, 193, 126, 0.14);
}

.mirror-flourish {
  position: absolute;
  z-index: 4;
  top: 0.9rem;
  width: 4.2rem;
  height: 5.7rem;
  pointer-events: none;
  border: 0.34rem solid #31100c;
  border-top-color: #5f2e22;
  border-bottom-color: transparent;
  border-radius: 68% 32% 64% 36%;
  box-shadow:
    inset 1px 1px 0 rgba(231, 165, 98, 0.13),
    1px 1px 0 rgba(9, 2, 1, 0.5);
  opacity: 0.92;
}

.mirror-flourish::before,
.mirror-flourish::after {
  content: "";
  position: absolute;
  border: 0.22rem solid #3b1711;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.mirror-flourish::before {
  inset: 0.5rem 0.7rem 1.7rem;
  transform: rotate(18deg);
}

.mirror-flourish::after {
  inset: 1.6rem 1.25rem 0.8rem;
  transform: rotate(-26deg);
}

.mirror-flourish-left {
  left: -1rem;
  transform: rotate(-18deg);
}

.mirror-flourish-right {
  right: -1rem;
  transform: scaleX(-1) rotate(-18deg);
}

.mirror-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(18rem, 35vw, 25rem);
  display: grid;
  place-items: center;
  padding:
    clamp(2.8rem, 6vw, 4.4rem)
    clamp(2rem, 7vw, 6rem)
    clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.42) 0 12%,
      transparent 23% 52%,
      rgba(255, 255, 255, 0.2) 65%,
      transparent 78%
    ),
    radial-gradient(
      ellipse at 32% 16%,
      rgba(255, 255, 255, 0.6),
      transparent 23rem
    ),
    radial-gradient(
      ellipse at 78% 76%,
      rgba(202, 185, 172, 0.28),
      transparent 25rem
    ),
    linear-gradient(
      145deg,
      rgba(220, 226, 224, 0.94),
      rgba(241, 232, 223, 0.95) 44%,
      rgba(196, 204, 202, 0.92) 100%
    );
  border: 1px solid rgba(15, 4, 3, 0.68);
  border-radius:
    48% 48% 0.68rem 0.68rem /
    22% 22% 0.68rem 0.68rem;
  box-shadow:
    inset 0 0 0 0.28rem rgba(255, 244, 229, 0.23),
    inset 0 0 2.8rem rgba(51, 37, 35, 0.16),
    0 0 0 0.18rem rgba(13, 3, 2, 0.35);
}

.mirror-glass::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    repeating-linear-gradient(
      2deg,
      rgba(66, 48, 47, 0.035) 0 1px,
      transparent 1px 5px
    ),
    radial-gradient(circle at 12% 68%, rgba(72, 57, 54, 0.16) 0 1px, transparent 1.6px),
    radial-gradient(circle at 84% 34%, rgba(72, 57, 54, 0.13) 0 1px, transparent 1.5px);
  background-size:
    auto,
    2.7rem 2.9rem,
    3.3rem 3.6rem;
  mix-blend-mode: multiply;
}

.mirror-glass::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.7rem;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius:
    47% 47% 0.4rem 0.4rem /
    21% 21% 0.4rem 0.4rem;
}

.mirror-shine {
  position: absolute;
  z-index: -1;
  left: 5%;
  top: -14%;
  width: 23%;
  height: 132%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.24),
    transparent
  );
  transform: rotate(8deg);
  filter: blur(0.25rem);
}

.mirror-silvering {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 48%;
  opacity: 0.26;
  filter: blur(0.12rem);
}

.mirror-silvering-one {
  right: -4rem;
  bottom: -3.2rem;
  width: 14rem;
  height: 9rem;
  background:
    radial-gradient(
      ellipse,
      rgba(91, 78, 75, 0.25),
      transparent 68%
    );
}

.mirror-silvering-two {
  left: -3rem;
  top: 18%;
  width: 9rem;
  height: 13rem;
  background:
    radial-gradient(
      ellipse,
      rgba(102, 88, 84, 0.18),
      transparent 67%
    );
}

.mirror-writing {
  position: relative;
  z-index: 2;
  width: min(100%, 46rem);
  color: rgba(139, 35, 68, 0.88);
  font-family:
    "Segoe Print",
    "Bradley Hand",
    "Comic Sans MS",
    cursive;
  text-align: center;
  text-shadow:
    0.035em 0.035em rgba(85, 13, 39, 0.12);
  transform: rotate(-0.45deg);
}

.mirror-marker-label {
  margin: 0 0 0.55rem;
  color: rgba(117, 26, 56, 0.76);
  font-family:
    "Segoe Print",
    "Bradley Hand",
    cursive;
  font-size: clamp(0.68rem, 1.2vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mirror-writing h2 {
  max-width: 20ch;
  margin: 0 auto 1rem;
  color: rgba(129, 25, 61, 0.91);
  font-family:
    "Segoe Print",
    "Bradley Hand",
    "Comic Sans MS",
    cursive;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.mirror-writing p {
  max-width: 60ch;
  margin: 0 auto 0.85rem;
  color: rgba(112, 31, 57, 0.82);
  font-family:
    "Segoe Print",
    "Bradley Hand",
    "Comic Sans MS",
    cursive;
  font-size: clamp(0.8rem, 1.45vw, 1.04rem);
  line-height: 1.58;
}

.mirror-writing p:nth-of-type(2) {
  max-width: 48ch;
  transform: rotate(0.45deg);
}

.mirror-marker-doodle {
  position: absolute;
  right: clamp(-0.3rem, 2vw, 1.6rem);
  bottom: -0.7rem;
  color: rgba(149, 37, 72, 0.74);
  font-family: Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  transform: rotate(12deg);
}

.mirror-marker-underline {
  position: absolute;
  left: 50%;
  top: clamp(4.8rem, 10vw, 7.2rem);
  width: min(62%, 25rem);
  height: 0.32rem;
  transform:
    translateX(-50%)
    rotate(-1.1deg);
  border-bottom: 0.15rem solid rgba(141, 32, 66, 0.66);
  border-radius: 50%;
  opacity: 0.72;
}

.mirror-writing::after {
  content: "";
  position: absolute;
  left: 13%;
  bottom: 8%;
  width: 4.8rem;
  height: 1.7rem;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse,
      rgba(144, 48, 77, 0.09),
      transparent 72%
    );
  transform: rotate(-11deg);
  filter: blur(0.22rem);
}

/* Wooden posts make the mirror visibly part of the cabinet. */
.mirror-support {
  position: absolute;
  z-index: -1;
  bottom: 0;
  width: clamp(1.1rem, 2vw, 1.55rem);
  height: 4.2rem;
  background:
    linear-gradient(
      90deg,
      #1a0604,
      #5f2b20 28%,
      #32120d 68%,
      #120403
    );
  border: 1px solid #100302;
  border-radius: 45% 45% 0.25rem 0.25rem;
  box-shadow:
    inset 1px 0 rgba(242, 176, 104, 0.12),
    0 4px 0 #100302;
}

.mirror-support::before,
.mirror-support::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background:
    linear-gradient(
      90deg,
      #1a0604,
      #6a3023,
      #21100b
    );
  border: 1px solid #100302;
  border-radius: 50%;
}

.mirror-support::before {
  top: 0.72rem;
  width: 1.9rem;
  height: 0.55rem;
}

.mirror-support::after {
  bottom: 0.45rem;
  width: 2.2rem;
  height: 0.68rem;
}

.mirror-support-left {
  left: 12%;
}

.mirror-support-right {
  right: 12%;
}

.vanity-cabinet > .curiosity-section-title {
  margin-top: 0.15rem !important;
}

/* The cabinet top gets a vanity-table ledge beneath the mirror. */
.vanity-cabinet > .curiosity-section-title::before {
  box-shadow:
    inset 1px 1px 0 rgba(255, 220, 171, 0.055),
    inset -1px -1px 0 rgba(11, 2, 1, 0.38),
    0 -0.8rem 0 #27100c,
    0 -1.05rem 0 #110403 !important;
}

@media (max-width: 760px) {
  .curiosities-page .vanity-cabinet {
    margin-top: 5.4rem;
  }

  .vintage-fixation-mirror {
    width: 96%;
    margin-top: -7.2rem;
  }

  .mirror-frame {
    border-radius:
      42% 42% 0.8rem 0.8rem /
      13% 13% 0.8rem 0.8rem;
  }

  .mirror-frame::before,
  .mirror-glass,
  .mirror-glass::after {
    border-radius:
      41% 41% 0.52rem 0.52rem /
      12% 12% 0.52rem 0.52rem;
  }

  .mirror-glass {
    min-height: 25rem;
    padding:
      3rem
      1.2rem
      2rem;
  }

  .mirror-writing h2 {
    max-width: 16ch;
  }

  .mirror-writing p {
    font-size: 0.77rem;
    line-height: 1.48;
  }

  .mirror-flourish {
    display: none;
  }

  .mirror-crown {
    top: -2rem;
    width: 8rem;
    height: 2.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mirror-shine {
    display: none;
  }
}

/* ==========================================================
   VINTAGE MIRROR PROPORTION + CLIPPING FIX — V6
   ========================================================== */

.curiosities-page .vanity-cabinet {
  margin-top: clamp(4.2rem, 7vw, 6.2rem) !important;
}

.vintage-fixation-mirror {
  width: min(78%, 47rem) !important;
  margin:
    clamp(-5.8rem, -7vw, -4.2rem)
    auto
    clamp(1.25rem, 2.5vw, 1.8rem) !important;
  padding-bottom: 1.55rem !important;
}

.mirror-frame {
  padding: clamp(0.72rem, 1.35vw, 1rem) !important;
  border-radius:
    44% 44% 1rem 1rem /
    16% 16% 1rem 1rem !important;
}

.mirror-frame::before {
  border-radius:
    43% 43% 0.72rem 0.72rem /
    15% 15% 0.72rem 0.72rem !important;
}

.mirror-glass {
  min-height: clamp(29rem, 51vw, 35rem) !important;
  display: block !important;
  padding:
    clamp(5.1rem, 8vw, 6.6rem)
    clamp(2.2rem, 6vw, 4.8rem)
    clamp(3.2rem, 5vw, 4.2rem) !important;
  border-radius:
    45% 45% 0.68rem 0.68rem /
    15% 15% 0.68rem 0.68rem !important;
}

.mirror-glass::after {
  border-radius:
    44% 44% 0.4rem 0.4rem /
    14% 14% 0.4rem 0.4rem !important;
}

.mirror-writing {
  width: min(100%, 38rem) !important;
  margin: 0 auto !important;
  transform: rotate(-0.3deg) !important;
}

.mirror-marker-label {
  margin-bottom: 0.75rem !important;
}

.mirror-writing h2 {
  max-width: 16ch !important;
  margin-bottom: 1.35rem !important;
  font-size: clamp(1.55rem, 3.2vw, 2.55rem) !important;
  line-height: 1.12 !important;
}

.mirror-writing p {
  max-width: 52ch !important;
  margin-bottom: 1rem !important;
  font-size: clamp(0.8rem, 1.2vw, 0.98rem) !important;
  line-height: 1.52 !important;
}

.mirror-writing p:nth-of-type(2) {
  max-width: 43ch !important;
}

.mirror-marker-underline {
  top: clamp(5.3rem, 9vw, 6.8rem) !important;
  width: min(58%, 20rem) !important;
}

.mirror-marker-doodle {
  right: clamp(0.2rem, 2vw, 1.4rem) !important;
  bottom: -0.15rem !important;
}

.mirror-support {
  height: 4.7rem !important;
}

.mirror-support-left {
  left: 14% !important;
}

.mirror-support-right {
  right: 14% !important;
}

@media (min-width: 1200px) {
  .vintage-fixation-mirror {
    width: min(72%, 45rem) !important;
  }

  .mirror-glass {
    min-height: 33rem !important;
  }
}

@media (max-width: 900px) {
  .curiosities-page .vanity-cabinet {
    margin-top: 4.8rem !important;
  }

  .vintage-fixation-mirror {
    width: 90% !important;
    margin-top: -5.2rem !important;
  }

  .mirror-glass {
    min-height: 31rem !important;
    padding:
      4.8rem
      1.65rem
      3rem !important;
  }

  .mirror-writing {
    width: min(100%, 33rem) !important;
  }
}

@media (max-width: 620px) {
  .curiosities-page .vanity-cabinet {
    margin-top: 4rem !important;
  }

  .vintage-fixation-mirror {
    width: 96% !important;
    margin-top: -4.25rem !important;
  }

  .mirror-frame {
    border-radius:
      40% 40% 0.78rem 0.78rem /
      10% 10% 0.78rem 0.78rem !important;
  }

  .mirror-frame::before,
  .mirror-glass,
  .mirror-glass::after {
    border-radius:
      39% 39% 0.5rem 0.5rem /
      9% 9% 0.5rem 0.5rem !important;
  }

  .mirror-glass {
    min-height: 33rem !important;
    padding:
      4.35rem
      1rem
      2.5rem !important;
  }

  .mirror-writing h2 {
    max-width: 14ch !important;
    font-size: clamp(1.45rem, 7vw, 2.15rem) !important;
  }

  .mirror-writing p {
    max-width: 34ch !important;
    font-size: 0.76rem !important;
    line-height: 1.46 !important;
  }

  .mirror-marker-underline {
    top: 6rem !important;
    width: 13rem !important;
  }

  .mirror-marker-doodle {
    right: 0.2rem !important;
    bottom: -0.4rem !important;
  }
}


/* ==========================================================
   GAMING HISTORY GALLERY — GAM-001 THROUGH GAM-030 (GAM-023 RESERVED / EXCLUDED)
   Preserve with the drawer-sound + brain-aquarium interaction bundle.
   ========================================================== */

.gaming-gallery-note {
  position: relative;
  z-index: 1;
  margin: 0 0 1.15rem;
  color: rgba(77, 28, 49, 0.76);
  font-family: Georgia, serif;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.gaming-year-group + .gaming-year-group {
  margin-top: 1.5rem;
}

.gaming-year-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
}

.gaming-year-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(101, 23, 43, 0.38),
    transparent
  );
}

.gaming-year-divider h3 {
  margin: 0;
  color: rgba(77, 28, 49, 0.78);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.gaming-photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

/* Keep a year containing only one image at ordinary card scale instead of
   stretching it across the entire drawer. These deliberately specific rules
   also beat the generic last-child responsive rule below. */
.gaming-photo-grid.gaming-photo-grid--singleton {
  grid-template-columns: minmax(0, 18rem);
  justify-content: center;
  justify-items: stretch;
}

.gaming-photo-grid.gaming-photo-grid--singleton .gaming-photo-card,
.gaming-photo-grid.gaming-photo-grid--singleton .gaming-photo-card:last-child {
  grid-column: auto;
  justify-self: center;
  width: 18rem;
  max-width: 100%;
}

.gaming-photo-button {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.08), transparent 48%),
    #2d1421;
}

.gaming-photo-button img {
  object-fit: contain;
}

.gaming-photo-date {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  z-index: 2;
  padding: 0.2rem 0.42rem;
  color: #fff8fb;
  background: rgba(49, 16, 31, 0.78);
  border: 1px solid rgba(255, 232, 241, 0.38);
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.gaming-photo-card figcaption {
  min-height: 3.4em;
}

.gaming-photo-id {
  display: block;
  margin-bottom: 0.15rem;
  color: rgba(101, 23, 43, 0.68);
  font-family: "DM Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.curiosity-lightbox-caption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  margin: 0;
  padding: 0.52rem 0.8rem 0.58rem;
  color: #fff8fb;
  background:
    linear-gradient(
      90deg,
      rgba(35, 10, 23, 0.74),
      rgba(35, 10, 23, 0.88) 18%,
      rgba(35, 10, 23, 0.88) 82%,
      rgba(35, 10, 23, 0.74)
    );
  border-top: 1px solid rgba(255, 239, 245, 0.26);
  box-shadow: 0 -0.55rem 1.6rem rgba(24, 4, 15, 0.24);
  backdrop-filter: blur(7px);
}

/* GAM-024 is an unusually shallow screenshot with important text along its
   bottom edge. Keep its caption below the image instead of covering it. */
.curiosity-lightbox-image-frame.is-caption-below {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  place-items: initial;
  max-height: none;
}

.curiosity-lightbox-image-frame.is-caption-below img {
  position: static;
  flex: 0 1 auto;
  display: block;
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
}

.curiosity-lightbox-image-frame.is-caption-below .curiosity-lightbox-caption {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  background:
    linear-gradient(
      90deg,
      rgba(35, 10, 23, 0.92),
      rgba(35, 10, 23, 0.98) 18%,
      rgba(35, 10, 23, 0.98) 82%,
      rgba(35, 10, 23, 0.92)
    );
  border-top: 1px solid rgba(255, 239, 245, 0.32);
  box-shadow: none;
}

.curiosity-lightbox-caption-meta {
  display: block;
  margin-bottom: 0.18rem;
  color: rgba(255, 226, 238, 0.82);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.48rem, 1.2vw, 0.58rem);
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.curiosity-lightbox-caption-track {
  display: block;
  overflow: hidden;
  width: 100%;
}

.curiosity-lightbox-caption-text {
  display: block;
  overflow: hidden;
  width: 100%;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.22;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.curiosity-lightbox-caption.is-scrolling .curiosity-lightbox-caption-text {
  overflow: visible;
  width: max-content;
  min-width: 100%;
  padding-left: 100%;
  text-align: left;
  text-overflow: clip;
  animation: curiosityCaptionMarquee 13s linear infinite;
}

.curiosity-lightbox-caption.is-scrolling:hover .curiosity-lightbox-caption-text,
.curiosity-lightbox-caption.is-scrolling:focus-within .curiosity-lightbox-caption-text {
  animation-play-state: paused;
}

@keyframes curiosityCaptionMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (max-width: 620px) {
  .gaming-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gaming-photo-grid.gaming-photo-grid--singleton {
    grid-template-columns: minmax(0, min(18rem, 100%));
  }

  .gaming-photo-grid.gaming-photo-grid--singleton .gaming-photo-card,
  .gaming-photo-grid.gaming-photo-grid--singleton .gaming-photo-card:last-child {
    width: min(18rem, 100%);
  }
}



/* Sticky return control for an open drawer.
   Appears only after the drawer header has scrolled out of view. */
.curiosity-drawer-top-button {
  position: fixed;
  right: max(1rem, calc(env(safe-area-inset-right, 0px) + 0.35rem));
  bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.35rem));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  padding: 0.7rem 0.95rem;
  color: #fff1df;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 229, 188, 0.26), transparent 36%),
    linear-gradient(145deg, rgba(112, 49, 34, 0.96), rgba(52, 18, 12, 0.97));
  border: 1px solid rgba(229, 175, 112, 0.5);
  border-radius: 999px;
  box-shadow:
    0 10px 24px rgba(9, 1, 1, 0.34),
    inset 0 1px 0 rgba(255, 236, 204, 0.3),
    inset 0 -4px 9px rgba(18, 4, 3, 0.35);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition:
    opacity 190ms ease,
    transform 190ms ease,
    filter 190ms ease;
}

.curiosity-drawer-top-button:hover,
.curiosity-drawer-top-button:focus-visible {
  filter: brightness(1.06);
}

.curiosity-drawer-top-button:focus-visible {
  outline: 2px solid rgba(255, 233, 196, 0.9);
  outline-offset: 2px;
}

.curiosity-drawer-top-button.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.drawer-top-button-arrow {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  color: #2d120b;
  background:
    radial-gradient(circle at 35% 30%, #f5d59e, #b87d43 62%, #6a3b1d 100%);
  border: 1px solid rgba(72, 35, 19, 0.9);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 1px rgba(255, 241, 215, 0.58),
    inset 0 -2px 3px rgba(72, 34, 15, 0.48);
  font-family: Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.drawer-top-button-text {
  white-space: nowrap;
}

.curiosity-gallery-drawers .curiosity-drawer.is-drawer-return-target > summary {
  animation: drawerReturnHighlight 920ms ease;
}

@keyframes drawerReturnHighlight {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 227, 190, 0.14),
      inset 0 -12px 18px rgba(10, 1, 1, 0.24),
      0 0 0 rgba(0,0,0,0);
  }
  35% {
    box-shadow:
      inset 0 1px 0 rgba(255, 227, 190, 0.18),
      inset 0 -12px 18px rgba(10, 1, 1, 0.24),
      0 0 0 3px rgba(228, 181, 116, 0.22),
      0 0 0 7px rgba(255, 224, 177, 0.12),
      0 7px 20px rgba(0,0,0,0.22);
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 227, 190, 0.14),
      inset 0 -12px 18px rgba(10, 1, 1, 0.24),
      0 0 0 rgba(0,0,0,0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .curiosity-lightbox-caption.is-scrolling .curiosity-lightbox-caption-text {
    overflow: visible;
    width: 100%;
    min-width: 0;
    padding-left: 0;
    animation: none;
    text-align: center;
    white-space: normal;
  }
}


/* Date-unknown intake shelf for uncatalogued gaming screenshots. */
.gaming-year-group--unknown {
  margin-top: 1.55rem;
}

.gaming-unknown-note {
  margin: -0.15rem 0 0.9rem;
  color: rgba(77, 28, 49, 0.68);
  font-family: Georgia, serif;
  font-size: 0.78rem;
  text-align: center;
}

.gaming-year-group--unknown .gaming-photo-date {
  max-width: calc(100% - 3.1rem);
  white-space: nowrap;
}

/* Opera GX / Chromium-safe gaming gallery hover
   ------------------------------------------------
   The original image filter + scale transition could make GPU-composited
   thumbnails flash or temporarily disappear in Opera GX. Keep the hover cue
   on the button frame instead, and avoid per-thumbnail filtered layers. */
.gaming-photo-card,
.gaming-photo-card:nth-child(even) {
  transform: none;
}

.gaming-photo-button {
  isolation: isolate;
  transition:
    box-shadow 160ms ease,
    outline-color 160ms ease;
}

.gaming-photo-button img,
.gaming-photo-button:hover img,
.gaming-photo-button:focus-visible img {
  transform: none;
  filter: none;
  transition: none;
}

.gaming-photo-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(255, 244, 249, 0);
  box-shadow: inset 0 0 0 0 rgba(255, 225, 237, 0);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.gaming-photo-button:hover,
.gaming-photo-button:focus-visible {
  box-shadow:
    0 0 0 2px rgba(255, 231, 240, 0.72),
    0 0 0 5px rgba(124, 36, 67, 0.2);
}

.gaming-photo-button:hover::after,
.gaming-photo-button:focus-visible::after {
  background: rgba(255, 244, 249, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 237, 244, 0.32);
}

.gaming-photo-button .gaming-photo-date,
.gaming-photo-button .curiosity-photo-corner {
  z-index: 2;
}

.gaming-photo-date {
  background: rgba(49, 16, 31, 0.93);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}



/* Opera GX static-thumbnail fallback
   -----------------------------------
   Opera GX continued to invalidate large portions of the gaming grid even
   after image transforms/filters were removed. The gaming tray therefore has
   no mouse-hover animation at all: no pseudo overlay, animated shadow, filter,
   opacity, transform, isolation, or transition. Keyboard focus keeps a simple
   outline for accessibility. */
.gaming-photo-card,
.gaming-photo-card:hover,
.gaming-photo-card:nth-child(even),
.gaming-photo-card:nth-child(even):hover {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.gaming-photo-button,
.gaming-photo-button:hover {
  isolation: auto !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: none !important;
}

.gaming-photo-button::before,
.gaming-photo-button::after,
.gaming-photo-button:hover::before,
.gaming-photo-button:hover::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  transition: none !important;
}

.gaming-photo-button img,
.gaming-photo-button:hover img {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
}

.gaming-photo-button:focus-visible {
  outline: 3px solid rgba(157, 36, 63, 0.55) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}
