* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #27262a; background: #141417; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .5; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid var(--focus, #ccd8eb); outline-offset: 3px; }

#study {
  --ink: #27262a;
  --muted: #6f6a71;
  --accent: #d92c4c;
  --focus: #536781;
  --border: #27262a1c;
  --surface: #ffffff75;
  position: relative;
  width: 100%; height: 100%; height: 100svh; min-height: 360px;
  isolation: isolate;
  background: radial-gradient(ellipse at 52% 39%, #fffefa 0%, #faf8f4 54%, #edece8 100%);
  color: var(--ink);
  transition: color .35s;
}
#study::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 53% 42%, #292b32 0%, #191a20 48%, #101013 100%);
  opacity: 0; transition: opacity .35s;
}
#study[data-theme="night"] {
  --ink: #f7f3ef;
  --muted: #a09da5;
  --accent: #ed4161;
  --focus: #d1def0;
  --border: #eee6df26;
  --surface: #ffffff05;
}
#study[data-theme="night"]::before { opacity: 1; }
.masthead {
  position: absolute; top: 34px; left: 42px; right: 42px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  pointer-events: none;
}
.wordmark { pointer-events: auto; color: var(--ink); text-decoration: none; font-size: 29px; letter-spacing: -1.5px; font-weight: 800; display: flex; align-items: baseline; }
.wordmark span { font-weight: 450; }
.wordmark i { width: 8px; height: 8px; border-radius: 2px; margin-left: 5px; background: var(--accent); transform: rotate(-10deg); }
.header-right { display: flex; align-items: center; gap: 32px; }
.previous-study { pointer-events: auto; font-size: 10px; color: var(--muted); text-decoration: none; padding: 12px 0; }
.previous-study span { margin-left: 5px; color: var(--accent); }
.previous-study:hover { color: var(--ink); }
.edition { display: flex; align-items: center; gap: 9px; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
.edition-number { border-left: 1px solid var(--border); padding-left: 13px; margin-left: 4px; color: var(--muted); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.caption { position: absolute; top: 140px; left: 44px; z-index: 2; pointer-events: none; }
.eyebrow { font-size: 8px; letter-spacing: 1.45px; font-weight: 650; color: var(--muted); }
h1 { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -1.7px; font-weight: 550; margin: 17px 0 0; }
.period { color: var(--accent); }
.caption-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 14px 0 0; }
.scene-wrap { position: absolute; inset: 70px 0 80px; z-index: 1; }
canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; outline: none; }
canvas:active { cursor: grabbing; }
.view-label { position: absolute; left: 44px; bottom: 128px; display: flex; gap: 7px; flex-direction: column; pointer-events: none; font-size: 8px; letter-spacing: 1.5px; color: var(--muted); }
.view-label span:first-child { font-size: 9px; color: var(--ink); font-weight: 600; }
.toolbar { position: absolute; z-index: 6; bottom: 26px; left: 42px; right: 42px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
#gesture-hint { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; letter-spacing: .1px; margin: 0; }
#gesture-hint svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#gesture-hint b { font-weight: 400; margin: 0 6px; opacity: .6; }
.control-group { display: flex; gap: 10px; align-items: center; }
.segmented { display: flex; padding: 4px; border: 1px solid var(--border); border-radius: 30px; background: var(--surface); backdrop-filter: blur(12px); }
.segmented button { display: flex; align-items: center; gap: 7px; border: 0; border-radius: 24px; min-height: 36px; padding: 10px 15px; background: transparent; color: var(--muted); font-size: 10px; transition: background .2s, color .2s, box-shadow .2s; }
.segmented button[aria-pressed="true"] { background: #da303c; color: #fff; box-shadow: 0 2px 8px #b5202920; }
[data-theme="night"] .segmented button[aria-pressed="true"] { background: #da303c; }
.palette-dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #88888850; }
.light-dot { background: #fff9f2; }
.dark-dot { background: #232329; }
.segmented button[aria-pressed="true"] .palette-dot { border-color: #ffffff65; }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--ink); transition: background .2s, border-color .2s; }
.icon-button:hover { background: #da303c0b; border-color: var(--accent); }
.icon-button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.play-symbol { display: none; }
#motion[aria-pressed="false"] .pause-symbol { display: none; }
#motion[aria-pressed="false"] .play-symbol { display: block; }
#loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; color: var(--muted); font-size: 12px; background: transparent; transition: opacity .4s; }
#loading.complete { opacity: 0; pointer-events: none; }
.loading-orbit { height: 36px; width: 36px; border: 1px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#failure { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(340px, 85%); background: #faf8f4; padding: 28px; border-radius: 15px; color: #27262a; }
#failure p { font-size: 13px; line-height: 1.6; }
#failure button { background: #da303c; color: #fff; border: 0; padding: 10px 18px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .caption { top: 124px; }
  h1 { font-size: 31px; letter-spacing: -1.3px; }
  .eyebrow { max-width: 180px; line-height: 1.7; display: block; }
  .header-right { gap: 24px; }
}
@media (max-width: 900px) {
  .scene-wrap { inset: 110px 0 100px; }
  .masthead { left: 26px; right: 26px; }
  .caption, .view-label { left: 28px; }
  .caption { top: 112px; }
  .toolbar { left: 26px; right: 26px; }
  #gesture-hint { max-width: 170px; line-height: 1.7; }
  #gesture-hint svg { flex-shrink: 0; }
}
@media (max-width: 600px) {
  .masthead { top: 22px; left: 23px; right: 23px; }
  .wordmark { font-size: 26px; }
  .header-right .edition { display: none; }
  .previous-study { font-size: 10px; }
  .caption { top: 93px; left: 25px; right: 25px; }
  .eyebrow { font-size: 7px; max-width: none; letter-spacing: 1.3px; }
  h1 { font-size: 32px; margin-top: 11px; letter-spacing: -1.2px; line-height: 1.08; }
  .caption-note { font-size: 10px; margin-top: 9px; }
  .scene-wrap { inset: 209px 0 136px; }
  .view-label { display: none; }
  .toolbar { bottom: 22px; left: 18px; right: 18px; gap: 17px; flex-direction: column-reverse; }
  #gesture-hint { max-width: none; font-size: 9px; }
  .control-group { gap: 8px; }
  .segmented button { font-size: 10px; padding: 10px 12px; min-height: 44px; }
  .icon-button { width: 44px; height: 44px; }
}
@media (max-width: 360px) {
  .segmented button { font-size: 9px; padding: 10px 9px; gap: 5px; white-space: nowrap; }
  .palette-dot { width: 8px; height: 8px; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .caption { top: 82px; }
  h1 { font-size: 28px; }
  .caption-note { display: none; }
  .scene-wrap { inset: 165px 0 113px; }
  .toolbar { bottom: 14px; gap: 11px; }
}
@media (max-height: 650px) and (min-width: 601px) {
  .masthead { top: 18px; }
  .caption { top: 98px; }
  .eyebrow { max-width: 145px; }
  h1 { font-size: 28px; }
  .caption-note { display: none; }
  .scene-wrap { inset: 45px 0 75px; }
  .view-label { bottom: 100px; }
  .toolbar { bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .loading-orbit { animation: none; }
}

/* Geographic drop marker and interaction states. */
[hidden] { display: none !important; }
.caption { transition: opacity .25s; }
.drop-launch { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-height: 58px; margin-top: 22px; padding: 10px 14px; background: #da303c09; border: 1px solid #da303c40; border-radius: 12px; color: var(--ink); font-size: 11px; text-align: left; transition: border-color .2s, background .2s; }
.drop-launch small { display: block; color: var(--muted); font-size: 7px; letter-spacing: 1.1px; margin-top: 6px; }
.drop-launch:hover { background: #da303c15; border-color: var(--accent); }
.launch-dot { width: 6px; height: 6px; flex-shrink: 0; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px #da303c12; }
.launch-arrow { margin-left: 8px; color: var(--accent); font-size: 17px; }
#drop-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.drop-beacon { position: absolute; z-index: 2; width: 44px; height: 52px; transform: translate(-50%, -84.61538%); pointer-events: auto; border: 0; border-radius: 20px; padding: 0; background: transparent; cursor: pointer; }
.drop-orb { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 3px #080b1470); }
.orb-body { transform-origin: 22px 21px; transition: filter 150ms; animation: orb-float 3.6s ease-in-out infinite; animation-play-state: paused; }
.orb-halo { transform-origin: 22px 44px; animation: orb-breathe 3.6s ease-in-out infinite; animation-play-state: paused; }
.drop-beacon[data-hovered="true"] .orb-body, .drop-beacon[data-selected="true"] .orb-body { filter: drop-shadow(0 0 4px #d4e5ff55); }
.drop-beacon[data-moving="true"] .orb-body { animation-play-state: running; }
.drop-beacon[data-moving="true"] .orb-halo { animation-play-state: running; }
@keyframes orb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes orb-breathe { 0%, 100% { opacity: .65; transform: scaleX(.88); } 50% { opacity: 1; transform: scaleX(1.08); } }
.drop-target { position: absolute; z-index: 1; transform: translate(-50%, -50%); pointer-events: auto; border: 0; background: transparent; border-radius: 10px; color: #f4f7fc; padding: 0; cursor: pointer; }

#drop-detail { position: absolute; z-index: 5; top: 107px; right: 32px; bottom: 102px; width: 290px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffffff30 transparent; border: 1px solid var(--border); border-radius: 18px; background: #f9f7f1f2; padding: 21px 24px 17px; box-shadow: 0 16px 55px #00000014; backdrop-filter: blur(22px); }
[data-theme="night"] #drop-detail { background: linear-gradient(150deg, #29272df5, #191a20f5 36%, #18191ff5); box-shadow: 0 16px 55px #00000035; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; height: 26px; }
.detail-kicker { color: var(--muted); font-size: 7px; letter-spacing: 1.3px; display: flex; align-items: center; gap: 7px; }
.detail-kicker i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
#close-drop { width: 36px; height: 36px; border-color: transparent; margin-right: -11px; }
#close-drop svg { width: 16px; height: 16px; }
#drop-heading { font-weight: 500; font-size: 27px; letter-spacing: -1px; margin: 12px 0 0; line-height: 1.15; }
#drop-heading span { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0; margin-top: 7px; }
.display-stage { position: relative; perspective: 850px; display: grid; place-items: center; width: 100%; border: 0; padding: 0; background: radial-gradient(ellipse at 50% 55%, #da303c0c, transparent 70%); color: var(--muted); margin: 20px 0; cursor: zoom-in; }
.display-case { --tilt-x: 0deg; --tilt-y: 0deg; --shine-x: 35%; position: relative; width: clamp(136px, 22vh, 206px); padding: 7px 5px 6px; border: 1px solid #a2adbf70; border-radius: 10px; background: linear-gradient(140deg, #4d515b, #202229 28%, #292c35 75%, #626774); box-shadow: 0 1px 0 #ffffff25 inset, 0 2px 0 #080b12, 0 3px 0 #8290aa50, 0 18px 32px #00000040; transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: transform .25s ease-out; overflow: hidden; }
.artwork-hint { display: block; font-size: 7px; letter-spacing: .5px; margin-top: 12px; }
.artwork-hint span { color: var(--accent); margin-left: 4px; }
.display-stage:hover .artwork-hint { color: var(--ink); }
.case-topline { display: flex; justify-content: space-between; padding: 0 4px 6px; font-size: 5px; font-weight: 600; letter-spacing: 1.2px; color: #d1d6e0; }
.display-case img { display: block; width: 100%; height: auto; border-radius: 5px; box-shadow: 0 0 0 1px #0a0c12; }
.case-glint { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: linear-gradient(115deg, transparent 24%, #d7ddff09 36%, #ffffff12 37%, transparent 50%, transparent 80%); background-size: 200% 100%; background-position: var(--shine-x) 50%; mix-blend-mode: screen; }
.display-stage:hover .case-glint { opacity: 1; }
.case-foot { display: flex; align-items: center; justify-content: center; gap: 5px; color: #aeb8c9; font-size: 4px; letter-spacing: .85px; padding-top: 6px; }
.case-foot i { width: 3px; height: 3px; border-radius: 50%; background: #f35c68; }
.card-series { font-size: 7px; letter-spacing: 1.2px; margin: 0 0 7px; color: var(--muted); }
.card-rarity { font-size: 10px; color: var(--muted); margin: 5px 0 0; }
.drop-status { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--border); margin-top: 17px; padding-top: 13px; font-size: 9px; color: var(--muted); }
.drop-status strong { color: var(--accent); font-weight: 500; }
.demo-note { color: var(--muted); font-size: 9px; line-height: 1.6; margin: 12px 0 0; }
.back-to-world { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 17px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--ink); padding: 12px; font-size: 10px; min-height: 42px; }
.back-to-world:hover { border-color: var(--accent); }
.back-to-world span { color: var(--accent); }
.location-reference { color: var(--muted); font-size: 7px; margin: 18px 0 0; line-height: 1.6; }
.location-reference span { opacity: .8; font-size: 6px; white-space: nowrap; }
#study[data-drop-open="true"] .caption { visibility: hidden; opacity: 0; }
#study[data-drop-open="true"] .scene-wrap { right: 340px; }
#study[data-drop-open="true"] .view-label { bottom: 112px; }
@media (max-width: 1100px) and (min-width: 601px) {
  .scene-wrap { left: 100px; }
  .caption-note { max-width: 170px; }
  #drop-detail { width: 274px; right: 25px; }
  #study[data-drop-open="true"] .scene-wrap { left: 0; right: 303px; }
}
@media (max-width: 600px) {
  .drop-launch { min-height: 46px; margin-top: 15px; padding: 8px 12px; font-size: 10px; border-radius: 9px; }
  .drop-launch small { font-size: 6px; margin-top: 4px; }
  .launch-arrow { font-size: 15px; }
  .scene-wrap { top: 263px; }

  #study[data-drop-open="true"] .scene-wrap { inset: 76px 0 405px; }
  #drop-detail { left: 18px; right: 18px; bottom: 122px; top: auto; width: auto; max-height: calc(100svh - 165px); padding: 14px 17px 12px; border-radius: 16px; }
  #close-drop { width: 44px; height: 44px; margin-right: -10px; }
  #drop-heading { font-size: 22px; margin-top: 7px; }
  #drop-heading span { display: inline; margin-left: 9px; font-size: 9px; }
  .detail-content { display: grid; grid-template-columns: 113px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 18px; }
  .display-stage { margin: 0; }
  .display-case { width: 110px; padding: 5px 3px; border-radius: 7px; }
  .case-topline { font-size: 4px; padding-bottom: 5px; letter-spacing: .5px; }
  .case-foot { font-size: 3px; letter-spacing: .25px; gap: 3px; padding-top: 6px; }
  .card-series { font-size: 6px; letter-spacing: .8px; line-height: 1.5; }
  .card-rarity { font-size: 8px; line-height: 1.5; }
  .drop-status { margin-top: 10px; padding-top: 9px; font-size: 8px; gap: 5px; }
  .demo-note { font-size: 8px; margin-top: 9px; }
  .demo-note br { display: none; }
  .back-to-world { margin-top: 10px; font-size: 9px; padding: 9px; min-height: 44px; }
  .location-reference { font-size: 6px; margin-top: 14px; }
  .location-reference span { font-size: 5px; }
}
@media (max-width: 360px) {
  .detail-content { grid-template-columns: 95px minmax(0, 1fr); gap: 13px; }
  .display-case { width: 94px; }
  #drop-detail { left: 12px; right: 12px; padding: 12px 14px; }
  .drop-status { flex-direction: column; gap: 4px; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .scene-wrap { top: 218px; bottom: 105px; }
  .drop-launch { margin-top: 11px; min-height: 42px; }
  #study[data-drop-open="true"] .scene-wrap { inset: 68px 0 380px; }
  #drop-detail { bottom: 108px; max-height: calc(100svh - 180px); }
}
@media (max-height: 650px) and (min-width: 601px) {
  #drop-detail { top: 72px; bottom: 81px; padding-top: 12px; }
  .drop-launch { margin-top: 15px; }
  #study[data-drop-open="true"] .scene-wrap { right: 303px; }
}
@media (prefers-reduced-motion: reduce) {
  .display-case { transform: none; }
}
@media (max-height: 650px) and (min-width: 601px) {
  #drop-detail { width: 380px; top: 50%; bottom: auto; max-height: calc(100svh - 144px); transform: translateY(-50%); right: 25px; padding: 12px 18px; }
  .view-label { display: none; }
  #study[data-drop-open="true"] .scene-wrap { left: 0; right: 425px; }
  .detail-heading { height: 15px; }
  #drop-heading { font-size: 21px; margin-top: 7px; }
  #drop-heading span { display: inline; font-size: 8px; margin-left: 10px; }
  .detail-content { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 12px; }
  .display-stage { margin: 0; }
  .display-case { width: 91px; padding: 4px 3px; border-radius: 6px; }
  .case-topline { font-size: 3px; letter-spacing: .5px; padding-bottom: 5px; }
  .case-foot { font-size: 2.5px; letter-spacing: .2px; padding-top: 5px; }
  .card-series { font-size: 6px; margin-bottom: 5px; }
  .card-rarity { font-size: 8px; }
  .drop-status { margin-top: 10px; padding-top: 8px; font-size: 8px; }
  .demo-note { display: none; }
  .back-to-world { margin-top: 10px; padding: 8px 10px; min-height: 36px; font-size: 9px; }
  .location-reference { margin-top: 9px; font-size: 6px; }
  .location-reference span { font-size: 5px; }
}

@media (min-height: 651px) and (max-height: 800px) and (min-width: 601px) {
  .display-stage { margin: 14px 0; }
  .demo-note, .back-to-world { display: none; }
  .location-reference { margin-top: 8px; }
  .drop-status { margin-top: 14px; padding-top: 10px; }
}

/* Full artwork stays face-on: no reflective overlay obscures the printed details. */
#card-lightbox { --ink: #f7f3ef; --muted: #a09da5; --accent: #ed4161;
  --focus: #d1def0; --border: #eee6df26; width: min(460px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; color: var(--ink); background: linear-gradient(145deg, #292a32, #15161c); border: 1px solid #ffffff24; border-radius: 18px; padding: 20px; box-shadow: 0 28px 100px #0009; }
#card-lightbox::backdrop { background: #090a10da; backdrop-filter: blur(16px); }
.artwork-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.artwork-heading p { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -.3px; }
.artwork-heading p span { display: block; font-size: 7px; letter-spacing: 1px; color: var(--muted); margin-top: 6px; }
#close-artwork { width: 40px; height: 40px; }
#card-lightbox > img { display: block; margin: auto; width: auto; max-width: 100%; height: auto; max-height: calc(100svh - 200px); border-radius: 12px; }
.artwork-caption { display: flex; justify-content: space-between; gap: 10px; font-size: 6px; letter-spacing: 1px; color: var(--muted); margin: 18px 0 0; }
.artwork-caption span { color: #ef8c92; }
@media (max-width: 600px), (max-height: 800px) { .artwork-hint { display: none; } }
@media (max-height: 650px) and (min-width: 601px) { #card-lightbox { width: min(460px, 90vw); padding: 14px 20px; } #card-lightbox > img { max-height: calc(100svh - 154px); } }

/* Compact detail layouts. */
@media (max-width: 600px) {
  #study[data-drop-open="true"] .scene-wrap { bottom: 440px; }
  .demo-note { display: none; }
}
@media (max-width: 600px) and (max-height: 700px) {
  #study[data-drop-open="true"] .scene-wrap { bottom: 380px; }
}
@media (max-height: 650px) and (min-width: 601px) {
  .back-to-world { display: none; }
}
@media (min-height: 651px) and (max-height: 800px) and (min-width: 601px) {
  .display-case { width: clamp(132px, 20vh, 160px); }
  .drop-status { margin-top: 10px; padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .orb-body, .orb-halo { animation: none !important; } }
@media (min-width: 601px) and (max-height: 999px) { .demo-note, .back-to-world { display: none; } }

@media (min-height: 651px) and (max-height: 800px) and (min-width: 601px) {
  #drop-detail { padding-top: 14px; padding-bottom: 12px; }
  #drop-heading { margin-top: 10px; }
  .display-stage { margin: 8px 0; }
  .location-reference { margin-top: 6px; }
}

/* Popovers have enter and exit motion; the canvas follows the changing layout. */
.scene-wrap { transition: top 280ms cubic-bezier(.2,.75,.25,1), right 280ms cubic-bezier(.2,.75,.25,1), bottom 280ms cubic-bezier(.2,.75,.25,1), left 280ms cubic-bezier(.2,.75,.25,1); }
.caption { transition: opacity 160ms ease, visibility 0s; }
#study[data-drop-open="true"] .caption { transition: opacity 140ms ease, visibility 0s 140ms; }
#drop-detail { transform-origin: 75% 20%; }
#card-lightbox { transform-origin: center; }
#card-lightbox::backdrop { animation: artwork-veil-in 230ms ease both; }
#card-lightbox[data-transition="leaving"]::backdrop { animation: artwork-veil-out 160ms ease both; }
@keyframes artwork-veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes artwork-veil-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #card-lightbox::backdrop { animation: none; } }
/* Follow the pointer promptly; only the return to neutral gets a longer ease. */
.display-case { transition: transform 180ms cubic-bezier(.2,.75,.25,1); }
.display-stage:hover .display-case { transition: transform 65ms linear; }
.case-glint { transition: opacity 120ms; }


/* Study 010: a quiet collector caption, always below the artwork. */
.previous-study .previous-label { color: inherit; margin: 0; }
.collectible-caption { position: absolute; display: block; text-align: center; color: #fffdf9; line-height: 1.15; white-space: nowrap; isolation: isolate; text-shadow: 0 1px 2px #05080d80; }
/* A feathered contrast scrim has no edge or container; it protects small type on terrain. */
.collectible-caption::before { content: ""; position: absolute; z-index: -1; inset: -25px -24px -19px; pointer-events: none; background: radial-gradient(ellipse at 50% 49%, #080d16d9 0%, #080d16b8 32%, #080d165c 52%, #080d1600 74%); }
.collectible-name { display: block; font-size: 18px; font-weight: 550; letter-spacing: -.55px; }
.card-suffix { font-size: .70em; font-weight: 450; letter-spacing: -.25px; margin-left: 1px; }
.collectible-value { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 9px; }
.collectible-amount { display: inline-flex; align-items: flex-start; gap: 2px; font-size: 28px; font-weight: 350; line-height: 1; letter-spacing: -1.1px; font-variant-numeric: lining-nums tabular-nums; }
.currency-symbol { font-size: .52em; line-height: 1; margin-top: .17em; font-weight: 450; letter-spacing: 0; }
.value-context { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 7px; font-weight: 450; line-height: 1; letter-spacing: .55px; color: #e5e7eb; }
.value-context > :last-child { font-size: 6px; letter-spacing: .35px; color: #c4cbd4; }
.collectible-caption[data-placement="above"]::after { content: ""; position: absolute; left: calc(50% - .5px); top: 72px; width: 1px; height: 12px; background: linear-gradient(#e0e9f260, #e0e9f208); }
.display-stage { background: none; }
.display-case { padding: 2px; border: 1px solid #aeb8c34a; border-radius: 6px; background: #1d222a; box-shadow: 1px 2px 0 #080a0e, 0 14px 28px #00000024; }
.display-case img { border-radius: 4px; box-shadow: none; }
#drop-detail { border-radius: 3px; border: 0; border-left: 1px solid var(--border); box-shadow: none; background: #f9f7f1ed; }
[data-theme="night"] #drop-detail { background: linear-gradient(90deg, #16181deb, #16181dc9); box-shadow: none; }
.detail-copy h3 { font-size: 26px; font-weight: 550; letter-spacing: -.8px; margin: 0; }
.detail-value { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; }
.detail-value .collectible-amount { font-size: 34px; }
.detail-value .value-context { color: var(--ink); font-size: 8px; gap: 5px; }
.detail-value .value-context > :last-child { color: var(--muted); font-size: 7px; }
@media (max-width: 600px) {
  .masthead { gap: 12px; }
  .header-right { gap: 14px; }
  .collectible-name { font-size: 16px; letter-spacing: -.45px; }
  .collectible-value { margin-top: 8px; gap: 8px; }
  .collectible-amount { font-size: 25px; letter-spacing: -.8px; }
  .value-context { font-size: 6.5px; gap: 3px; letter-spacing: .3px; }
  .value-context > :last-child { font-size: 5.5px; letter-spacing: .1px; }
  .collectible-caption[data-placement="above"]::after { top: 64px; }
  #drop-detail { border-left: 0; border-top: 1px solid var(--border); }
  .detail-copy h3 { font-size: 22px; }
  .detail-value { margin-top: 12px; gap: 8px; }
  .detail-value .collectible-amount { font-size: 27px; }
  .detail-value .value-context { font-size: 7px; }
  .detail-value .value-context > :last-child { font-size: 6px; }
}
@media (max-width: 360px) {
  .collectible-name { font-size: 14.5px; }
  .collectible-amount { font-size: 23px; }
  .collectible-value { gap: 6px; }
  .collectible-caption[data-placement="above"]::after { top: 60px; }
  .detail-copy h3 { font-size: 18px; }
  .detail-value .collectible-amount { font-size: 25px; }
}
@media (max-height: 650px) and (min-width: 601px) {
  .detail-copy h3 { font-size: 21px; }
  .detail-value { margin-top: 10px; }
  .detail-value .collectible-amount { font-size: 26px; }
}


/* Study 011: shallow block-built lettering, with one quiet lift on interaction. */
.block-type { display: block; width: auto; height: var(--block-height, 18px); overflow: visible; pointer-events: none; }
[data-block-text] { display: inline-flex; vertical-align: middle; }
.block-letter { transform: translateY(0); transition: transform 220ms cubic-bezier(.2,.75,.25,1); }
.block-front { fill: #f2efdf; transition: fill 180ms ease; }
.block-side { fill: #85919b; transition: fill 180ms ease; }
.block-base { fill: #506271; }
.block-edge { fill: none; stroke: #fffef3; stroke-width: .055; stroke-opacity: .65; }
.collectible-name { display: flex; justify-content: center; align-items: baseline; gap: 5px; line-height: 1; }
.collectible-name .card-suffix { --block-height: 12px; margin: 0; }
.collectible-amount { align-items: center; gap: 3px; }
.collectible-amount [data-drop-number] { --block-height: 32px; }
.collectible-amount .currency-symbol { --block-height: 16px; margin: 0 0 3px; }
.collectible-value { margin-top: 10px; }
.drop-target[data-hovered="true"] .block-letter { transform: translateY(-.55px); transition-delay: calc(var(--letter-index) * 12ms); }
.drop-target[data-hovered="true"] .block-front { fill: #fffdf0; }
.drop-target[data-hovered="true"] .block-side { fill: #b4c3cb; }
.drop-target:active .block-letter { transform: translateY(.18px); transition-duration: 65ms; transition-delay: 0ms; }
.detail-copy h3 { display: flex; align-items: baseline; gap: 7px; --block-height: 25px; }
.detail-copy h3 .card-suffix { --block-height: 17px; margin: 0; }
.detail-value .collectible-amount [data-drop-number] { --block-height: 38px; }
.detail-value .collectible-amount .currency-symbol { --block-height: 19px; }
[data-theme="day"] .detail-copy .block-front { fill: #394853; }
[data-theme="day"] .detail-copy .block-side { fill: #697a87; }
[data-theme="day"] .detail-copy .block-base { fill: #98a4ab; }
[data-theme="day"] .detail-copy .block-edge { stroke: #8796a1; }
.display-stage:focus-visible + .detail-copy .block-letter { transform: translateY(-.55px); transition-delay: calc(var(--letter-index) * 12ms); }
@media (hover: hover) {
  .display-stage:hover + .detail-copy .block-letter { transform: translateY(-.55px); transition-delay: calc(var(--letter-index) * 12ms); }
}
@media (max-width: 600px) {
  .collectible-name { --block-height: 17px; gap: 4px; }
  .collectible-name .card-suffix { --block-height: 11px; }
  .collectible-amount [data-drop-number] { --block-height: 28px; }
  .collectible-amount .currency-symbol { --block-height: 14px; }
  .collectible-value { margin-top: 8px; }
  .detail-copy h3 { --block-height: 20px; gap: 5px; }
  .detail-copy h3 .card-suffix { --block-height: 13px; }
  .detail-value .collectible-amount [data-drop-number] { --block-height: 30px; }
  .detail-value .collectible-amount .currency-symbol { --block-height: 15px; }
}
@media (max-width: 360px) {
  .collectible-name { --block-height: 15px; gap: 4px; }
  .collectible-name .card-suffix { --block-height: 10px; }
  .collectible-amount [data-drop-number] { --block-height: 26px; }
  .collectible-amount .currency-symbol { --block-height: 13px; }
  .detail-copy h3 { --block-height: 18px; gap: 4px; }
  .detail-copy h3 .card-suffix { --block-height: 12px; }
  .detail-value .collectible-amount [data-drop-number] { --block-height: 28px; }
  .detail-value .collectible-amount .currency-symbol { --block-height: 14px; }
}
@media (max-height: 650px) and (min-width: 601px) {
  .detail-copy h3 { --block-height: 20px; }
  .detail-copy h3 .card-suffix { --block-height: 13px; }
  .detail-value .collectible-amount [data-drop-number] { --block-height: 30px; }
  .detail-value .collectible-amount .currency-symbol { --block-height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .block-letter { transform: none !important; transition: none !important; }
  .block-front, .block-side { transition: none !important; }
}

/* Study 012: five collectibles, with a shared scale and a quiet city index. */
.scene-wrap { bottom: 155px; }
.view-label { display: none; }
.collectible-city { display: block; color: #d0d8df; font-size: 7px; font-weight: 500; letter-spacing: 1.25px; margin-bottom: 7px; line-height: 1; }
.collectible-name { --block-height: 16px; gap: 4px; }
.collectible-name .card-suffix { --block-height: 10px; }
.collectible-value { margin-top: 8px; gap: 7px; }
.collectible-amount { gap: 2px; }
.collectible-amount [data-drop-number] { --block-height: 27px; }
.collectible-amount .currency-symbol { --block-height: 13px; margin-bottom: 2px; }
.collectible-amount .value-cents { --block-height: 11px; align-self: flex-start; margin-top: 2px; margin-left: 1px; }
.value-context { font-size: 6px; letter-spacing: .35px; gap: 4px; }
.value-context > :last-child { font-size: 5px; letter-spacing: .3px; }
.collectible-caption::before { inset: -16px -12px -18px; background: radial-gradient(ellipse at 50% 52%, #080d16de 0%, #080d16ba 34%, #080d1660 55%, #080d1600 76%); }
.detail-value .value-cents { --block-height: 16px; margin-top: 3px; }
.price-reference { display: flex; flex-direction: column; gap: 5px; font-size: 8px; line-height: 1.5; color: var(--muted); margin: 13px 0 0; }
.price-reference a { color: var(--ink); text-decoration: none; width: fit-content; border-bottom: 1px solid var(--border); }
.price-reference a:hover { border-color: var(--accent); }
.detail-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); margin-top: 17px; padding-top: 5px; }
.detail-navigation span { color: var(--muted); font-size: 6px; letter-spacing: 1.2px; }
.detail-navigation button { background: transparent; color: var(--ink); border: 0; width: 44px; height: 44px; font-size: 19px; transition: color 160ms, transform 160ms; }
.detail-navigation button:hover { color: var(--accent); transform: translateX(2px); }
.detail-navigation button:first-child:hover { transform: translateX(-2px); }
#city-nav { position: absolute; z-index: 4; left: 42px; right: 42px; bottom: 100px; display: flex; justify-content: center; gap: clamp(8px, 2vw, 26px); transition: opacity 150ms; }
.city-nav-button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 4px; color: var(--muted); background: transparent; border: 0; font-size: 10px; white-space: nowrap; transition: color 150ms; }
.city-nav-button > span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--border); font-size: 7px; color: var(--muted); font-variant-numeric: tabular-nums; transition: border-color 150ms, color 150ms, transform 180ms; }
.city-nav-button:hover, .city-nav-button:focus-visible { color: var(--ink); }
.city-nav-button:hover > span, .city-nav-button:focus-visible > span { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
#study[data-drop-open="true"] #city-nav { visibility: hidden; opacity: 0; pointer-events: none; }
@media (max-width: 900px) and (min-width: 601px) { #city-nav { left: 26px; right: 26px; gap: 14px; } }
@media (max-width: 600px) {
  .scene-wrap { top: 263px; bottom: 191px; }
  #city-nav { left: 18px; right: 18px; bottom: 132px; gap: 13px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
  #city-nav::-webkit-scrollbar { display: none; }
  .city-nav-button { gap: 6px; font-size: 9px; flex-shrink: 0; }
  .city-nav-button > span { width: 18px; height: 18px; font-size: 6px; }
  .collectible-city { font-size: 6px; letter-spacing: 1px; margin-bottom: 6px; }
  .collectible-name { --block-height: 15px; }
  .collectible-name .card-suffix { --block-height: 9px; }
  .collectible-amount [data-drop-number] { --block-height: 24px; }
  .collectible-amount .currency-symbol { --block-height: 12px; }
  .collectible-amount .value-cents { --block-height: 10px; }
  .detail-value .value-cents { --block-height: 12px; }
  .detail-copy h3 { --block-height: 17px; gap: 4px; flex-wrap: wrap; }
  .detail-copy h3 .card-suffix { --block-height: 11px; }
  .detail-value { flex-wrap: wrap; gap: 7px; }
  .price-reference { font-size: 7px; gap: 3px; margin-top: 10px; }
  .detail-navigation { margin-top: 10px; }
  .location-reference { margin-top: 6px; }
  #study[data-drop-open="true"] .scene-wrap { bottom: 480px; }
}
@media (max-width: 360px) {
  .collectible-name { --block-height: 13.5px; gap: 3px; }
  .collectible-amount [data-drop-number] { --block-height: 23px; }
  .value-context { font-size: 5.5px; }
  .value-context > :last-child { font-size: 4.5px; }
  .detail-copy h3 { --block-height: 16px; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .scene-wrap { top: 218px; bottom: 158px; }
  #city-nav { bottom: 104px; }
  #study[data-drop-open="true"] .scene-wrap { bottom: 380px; }
}
@media (max-height: 650px) and (min-width: 601px) { #city-nav { bottom: 76px; } .scene-wrap { bottom: 127px; } .price-reference { margin-top: 8px; font-size: 7px; } }
@media (max-width: 600px) {
  #city-nav { justify-content: space-between; gap: 6px; }
  .city-nav-button { padding-inline: 2px; }
  .city-nav-button > span { display: none; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .back-to-world { display: none; }
  .detail-content { margin-top: 12px; }
  .price-reference { font-size: 6.5px; }
}
/* Navigation has priority over every floating hit target, including during fade-out. */
#drop-overlay[data-navigating="true"] .drop-beacon,
#drop-overlay[data-navigating="true"] .drop-target { pointer-events: none !important; }
.drop-target, .drop-beacon { touch-action: none; user-select: none; }
