/* Chapter interaction UI is separate from scene art and map layout. */
button,input,select{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,label:has(+input:focus-visible){outline:3px solid #6d8a48;outline-offset:4px}button:active{transform:scale(.98)}.experience{min-height:0;padding:8px 4% 0;display:grid;grid-template-rows:40px minmax(0,1fr) 48px;animation:arrive .5s var(--curve)}.chapter-world:has(.experience){height:100svh;grid-template-rows:88px minmax(0,1fr) 64px}.chapter-topline{display:flex;align-items:center;justify-content:space-between}.chapter-topline p{letter-spacing:2px;color:#53683d}.experience-layout{display:grid;grid-template-columns:minmax(260px,30%) minmax(0,1fr);align-items:center;gap:32px;min-height:0}.explorer-info{background:#fff6dfed;padding:24px;border-radius:24px;box-shadow:0 8px 24px #48612720;max-height:100%;overflow:auto}.explorer-info h1{font-size:36px;line-height:40px;margin:12px 0;color:#495f36}.explorer-info h1>span{color:#9aa567}.explorer-info h2{font-size:18px;line-height:28px;font-weight:600}.explorer-info>p{font-size:14px;line-height:20px;margin-top:12px;color:#7a8161}.explore-index{display:grid;gap:8px;margin-top:24px}.object-entry{display:flex;align-items:center;gap:12px;text-align:left;background:#f5e8c6;border:1px solid #e3d5b4;border-radius:12px;padding:8px 12px;transition:transform .5s var(--curve)}.object-entry:hover{transform:translateX(4px)}.entry-number{font-size:12px;line-height:24px;background:#e4cf98;width:24px;border-radius:50%;text-align:center;flex-shrink:0}.object-entry>span:nth-child(2){flex:1;font-size:14px;font-weight:600}.object-entry small{display:block;font-size:12px;line-height:16px;font-weight:400;color:#83866a}.entry-seen{font-size:14px;color:#819355}.object-entry.explored{background:#eaf0d2;border-color:#b4c394}.explorer-info>.illustration-note{font-size:12px;line-height:16px;color:#8b8b70;margin-top:16px}.chapter-stage{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%;min-height:0}.scene-canvas{position:relative;aspect-ratio:4/3;max-width:100%;width:min(100%,calc((100svh - 260px)*4/3));flex-shrink:1;min-height:0}.scene-canvas>.scene-image{width:100%;height:100%;object-fit:contain}.hotspot-layer{position:absolute;inset:0;pointer-events:none}.hotspot{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);background:none;border:0;min-width:44px;min-height:44px;display:grid;place-items:center;pointer-events:auto;padding:0;isolation:isolate}.hotspot-dot{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fff3c8;color:#596d3f;border:2px solid #fffcef;box-shadow:0 0 0 5px #ffefd358,0 3px 8px #3d4c3740;font-size:14px;line-height:20px;font-weight:600;transition:transform .5s var(--curve)}.hotspot:hover .hotspot-dot,.hotspot:focus-visible .hotspot-dot{transform:scale(1.12)}.hotspot.explored .hotspot-dot{background:#7c9857;color:#fffce4}.hotspot-tooltip{position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);background:#fff6df;color:#53653c;white-space:nowrap;border-radius:999px;padding:4px 12px;font-size:12px;opacity:0;transition:opacity .3s var(--curve);pointer-events:none;box-shadow:0 3px 8px #53633d20}.hotspot:hover .hotspot-tooltip,.hotspot:focus-visible .hotspot-tooltip{opacity:1}.hotspot:active{transform:translate(-50%,-50%) scale(.98)}.scene-hint{font-size:12px;line-height:16px;color:#4f673a;text-shadow:0 1px 5px #f9edca;margin-top:8px}.experience-nav{display:flex;justify-content:space-between;align-items:center;font-size:14px;gap:16px}.experience-nav a{padding:8px 16px;background:#fff4dbe8;border-radius:999px}.experience-nav a:hover{background:#fff8e9}.explore-count{font-size:12px;color:#526b3c}.archive-dialog{border:2px solid #f8e8bf;border-radius:24px;padding:0;width:min(880px,calc(100vw - 32px));max-height:88svh;color:#465936;background:#fff7e4;box-shadow:0 24px 80px #2e492846;overflow:auto}.archive-dialog::backdrop{background:#263d31a6}.archive-dialog[open]{animation:arrive .3s var(--curve)}.dialog-header{position:sticky;top:0;display:flex;align-items:center;gap:16px;padding:16px 24px;background:#fff7e4;z-index:5;border-bottom:1px solid #e9debf}.dialog-header h2{flex:1;font-size:20px;line-height:28px;font-weight:600}.small-button,.text-button{border:0;font-size:12px;line-height:20px;padding:8px 12px;border-radius:999px;background:#e9dbb6;color:#58683e;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.small-button:hover{background:#ded0a7}.small-button[hidden]{display:none}.text-button{background:transparent;text-decoration:underline}.dialog-body{padding:24px}.dialog-error{padding:0 24px 16px;color:#9d503b;font-size:14px}.dialog-error:empty{display:none}.panel-intro,.record-note p{font-size:14px;line-height:24px;color:#7d8266;margin:0 0 24px}.record-note{padding:16px;background:#efe8d2;border-radius:12px;margin-bottom:24px}.record-note span{font-size:12px;line-height:16px;font-weight:600;color:#8c805e}.record-note p{margin:8px 0 0}.media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:16px}.media-card{min-width:0;padding:12px;border-radius:12px;background:#fffdf4;border:1px solid #e5dbc3;box-shadow:0 3px 0 #c6b98b20}.media-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;aspect-ratio:4/3;width:100%;padding:0;border:1px dashed #cbc4a9;border-radius:8px;background:#f0ecd9;font-size:12px;color:#8b8d72;overflow:hidden}.media-preview.has-media{border-style:solid}.media-preview img{width:100%;height:100%;object-fit:cover}.media-symbol{font-size:36px;line-height:40px;color:#a2aa83}.media-card h3{font-size:14px;line-height:20px;margin:12px 0 4px;font-weight:600}.media-status{font-size:12px;line-height:16px;color:#8a8d74}.media-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.file-input{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.content-note{font-size:12px;line-height:20px;color:#8b8a72;margin-top:16px}.polaroid-wall .media-card{border-radius:4px;box-shadow:0 8px 16px #7b70461c}.polaroid-wall .media-card:nth-child(2){transform:rotate(1deg)}.polaroid-wall .media-card:nth-child(3){transform:rotate(-1deg)}.photo-viewport{max-height:60svh;overflow:auto;background:#e7e7d8;border-radius:12px}.zoom-photo{display:block;width:100%;height:auto;max-height:none}.zoom-tools{display:flex;align-items:center;gap:24px;font-size:14px;margin-bottom:16px}.zoom-tools label{display:flex;align-items:center;gap:12px}.video-viewer video{display:block;width:100%;max-height:60svh;background:#22372c;border-radius:12px}.archive-dialog[data-layer="media"]{width:min(1000px,calc(100vw - 32px))}
@media(max-width:900px){.experience-layout{grid-template-columns:250px minmax(0,1fr);gap:16px}.explorer-info{padding:16px}.dialog-body{padding:16px}.explore-index{margin-top:16px}}
@media(max-width:700px){.chapter-world:has(.experience){height:auto;min-height:100svh;grid-template-rows:88px auto 88px}.experience{display:flex;flex-direction:column;padding:8px 16px}.chapter-topline{gap:12px}.experience-layout{display:flex;flex-direction:column-reverse;gap:16px}.chapter-stage{width:100%;margin-top:16px}.scene-canvas{width:100%;max-height:none}.scene-hint{text-align:center}.explorer-info{width:100%;margin-top:8px;max-height:none}.explorer-info h1{font-size:30px;line-height:36px}.explore-index{grid-template-columns:repeat(2,minmax(0,1fr))}.object-entry{gap:8px;padding:8px}.object-entry small{font-size:10px}.experience-nav{width:100%;padding:24px 0;gap:8px}.experience-nav a{font-size:12px;padding:8px 12px}.dialog-header{padding:12px;gap:8px}.dialog-header h2{font-size:16px;line-height:24px}.dialog-header .small-button{padding:8px}.hotspot-tooltip{display:none}.media-grid{grid-template-columns:1fr}.polaroid-wall .media-card{transform:none!important}}
@media(prefers-reduced-motion:reduce){.hotspot:hover .hotspot-dot,.object-entry:hover{transform:none}}
.discovery-object{position:relative;background:#eaf0d7;padding:24px;border-radius:16px;margin-bottom:24px}.discovery-object h3{font-size:24px;line-height:32px;margin:8px 0}.discovery-object p{font-size:14px;line-height:24px;color:#7c8567}.discovery-stamp{font-size:12px;color:#788e4f}.object-notebook{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.notebook-item{padding:16px;background:#eee8d4;border:1px solid #d9d0b5;border-radius:12px;display:flex;align-items:center;gap:12px;font-size:14px}.notebook-item small{margin-left:auto;font-size:12px}.notebook-item.found{background:#e6eecf}.discovery-object~.media-grid{max-width:440px;margin:auto}.dialog-body>.small-button{margin-top:16px}
.envelope-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.envelope{position:relative;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:2px solid #dfcba4;border-radius:8px;background:#f1e0b9;box-shadow:0 5px 0 #c6ad7c33;font-size:16px;font-weight:600;overflow:hidden}.envelope::before{content:"";position:absolute;top:-70px;width:140px;height:140px;background:#f7e9c9;border:1px solid #dfcba4;transform:rotate(45deg);z-index:0}.envelope>*{position:relative}.envelope small{font-size:12px;font-weight:400;color:#908365}.envelope-seal{border-radius:50%;background:#b87252;color:#fff3d4;width:32px;height:32px;display:grid;place-items:center}.envelope.opened .envelope-seal{background:#82925b}.envelope:hover{transform:translateY(-3px)}.filter-bar{display:flex;gap:8px;margin-bottom:24px}.filter-bar [aria-pressed="true"]{background:#7e9358;color:#fff8dd}.archive-list{display:grid;gap:12px}.archive-list button{display:flex;gap:16px;align-items:center;text-align:left;padding:16px;background:#f0ead5;border:1px solid #dfd5b9;border-radius:12px}.archive-list button>span:first-child{flex:1}.archive-list small{color:#8a8e71}.letter-sheet{padding:24px;background:#fffdf4;border:1px solid #e6dbc0;margin-bottom:24px;border-radius:8px}.letter-mark{font-size:12px;letter-spacing:2px;color:#a5a17a}.letter-sheet h3{font-size:24px;line-height:32px;font-weight:600}.letter-sheet dl{margin:16px 0}.letter-sheet dl>div{display:flex;gap:24px;font-size:14px;line-height:28px}.letter-sheet dd{margin:0;color:#8a8d74}.letter-sheet p{font-size:14px;line-height:24px;color:#7d8568}.letter-sheet~.media-grid{max-width:440px;margin:auto}@media(max-width:700px){.envelope-grid{grid-template-columns:1fr}.envelope{min-height:150px}.archive-list button{gap:8px;flex-wrap:wrap}}
.comparison-canvas{position:relative;aspect-ratio:16/9;border:1px solid #d9d7bd;border-radius:12px;overflow:hidden;background:#e5e9d3}.compare-frame{position:absolute;inset:0}.compare-frame img{width:100%;height:100%;object-fit:cover}.compare-before{clip-path:inset(0 calc(100% - var(--split)) 0 0)}.compare-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:12px;background:#e2e8d0;font-size:14px;color:#7e896a}.compare-before .compare-empty{background:#efe1c7}.compare-empty>span{font-size:36px}.compare-empty small{font-size:12px}.compare-label{position:absolute;top:12px;right:12px;background:#fff8e2;padding:4px 12px;border-radius:999px;font-size:12px}.compare-before .compare-label{left:12px;right:auto}.compare-divider{position:absolute;left:var(--split);top:0;bottom:0;width:3px;background:#fff8e5;box-shadow:0 0 5px #505b3c44;pointer-events:none}.compare-divider span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fff8e5;color:#738052}.compare-control{display:flex;align-items:center;gap:16px;font-size:12px;margin-top:16px}.compare-control input{flex:1;min-width:0;accent-color:#7d9159}.compare-control output{width:40px}.side-by-side{display:grid;grid-template-columns:1fr 1fr;gap:4px;aspect-ratio:16/7}.side-by-side .compare-frame{position:relative;inset:auto;min-width:0}.side-by-side .compare-before{clip-path:none;grid-column:1;grid-row:1}.side-by-side .compare-current{grid-column:2;grid-row:1}.side-by-side .compare-label{font-size:10px;padding:4px;left:8px;right:auto}.material-picker{margin-top:24px}.material-picker summary{cursor:pointer;font-size:14px;line-height:24px;margin-bottom:16px}.habit-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.habit-table td,.habit-table th{padding:16px;border-bottom:1px solid #e5dcc1}.habit-table thead{background:#e9e6d0}.habit-table td{color:#8f9178}@media(max-width:700px){.compare-empty{font-size:12px;gap:4px}.compare-empty>span{font-size:24px}.compare-label{top:4px;font-size:10px;padding:2px 4px}.habit-table td,.habit-table th{padding:12px}}
.comparison-canvas{max-height:42svh}.compare-current{background:#e2e8d0}.compare-before{background:#efe1c7}.compare-current .compare-empty{padding-left:50%;background:transparent}.compare-before .compare-empty{padding-right:50%;background:transparent}.side-by-side .compare-empty{padding:0}
.season-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:16px}.season-picker button{border:1px solid #ded5b9;border-radius:12px;padding:8px;background:#f0ead6;font-size:12px;display:flex;align-items:center;justify-content:center;gap:8px}.season-picker button>span{font-size:18px;line-height:28px;font-weight:600}.season-picker [aria-pressed="true"]{background:#7f945d;color:#fff9df;border-color:#7f945d}.railway-world{position:relative;border-radius:16px;overflow:hidden;background:#e5efc7;--hill:#c5da9c;--meadow:#b3ce82;--leaf:#7c9f55;--leaf-light:#b7d57c;--accent:#eac0c2}.railway-world svg{display:block;width:100%;max-height:47svh}.railway-world[data-season="summer"]{background:#d8edca;--hill:#b0d591;--meadow:#92bf6e;--leaf:#5a914c;--leaf-light:#a7d374;--accent:#f3da78}.railway-world[data-season="autumn"]{background:#f0e4bf;--hill:#d6c38a;--meadow:#c9b776;--leaf:#bb8446;--leaf-light:#e8b66c;--accent:#e8a563}.railway-world[data-season="winter"]{background:#edf0e5;--hill:#d7e2d4;--meadow:#e2e7d7;--leaf:#829d87;--leaf-light:#b8c9ad;--accent:#f8fcf4}.tree-snow{display:none}.railway-world[data-season="winter"] .tree-snow{display:block}.railway-season{position:absolute;left:16px;top:16px;font-size:12px;letter-spacing:2px;background:#fff7dfc9;padding:4px 12px;border-radius:999px}.train-controls{display:flex;align-items:center;gap:12px;margin-top:16px;flex-wrap:wrap}.primary-control{background:#82975a;color:#fff8df}.train-status{font-size:12px;color:#839068;margin-left:auto}@media(max-width:700px){.season-picker button{flex-direction:column;gap:0;font-size:10px}.train-controls{gap:8px}.train-controls button{padding:8px}.railway-season{top:8px;left:8px;padding:2px 8px}}
.character-viewer{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}.character-plinth{position:relative;aspect-ratio:1/1.15;display:flex;justify-content:center;align-items:center;background:#e7edd4;border-radius:50% 50% 24px 24px;overflow:hidden;padding:24px}.character-plinth::after{content:"";position:absolute;left:14%;right:14%;bottom:16px;height:12%;background:#d8b77b;border-radius:50%;box-shadow:0 8px 0 #b49056;z-index:0}.character-pose{position:relative;width:80%;height:85%;z-index:1;transform:perspective(600px) rotateY(var(--avatar-tilt)) scale(var(--avatar-scale));transform-origin:center bottom;transition:transform .5s var(--curve)}.avatar-image{height:100%;width:100%;object-fit:contain;filter:drop-shadow(3px 7px 4px #636b4023);transform-origin:center bottom}.is-swaying{animation:character-sway 2.5s cubic-bezier(.45,0,.55,1) infinite alternate}.character-tools h3{font-size:36px;line-height:40px;margin:12px 0}.character-tools>p{font-size:14px;line-height:24px;color:#7e866a}.character-tools label{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:12px;margin:24px 0 16px}.character-tools label input{min-width:0;max-width:150px;accent-color:#7e9459}.pose-buttons{display:flex;gap:8px;margin-bottom:16px}.pose-buttons [aria-pressed="true"]{background:#7f935b;color:#fff9de}.profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 24px}.profile-facts>div{background:#eee8d2;border-radius:12px;padding:16px}.profile-facts dt{font-size:12px;color:#959273}.profile-facts dd{margin:8px 0 0;font-size:18px;font-weight:600}.profile-facts .empty-fact{color:#a5a28b;font-weight:400}.review-tabs{display:flex;gap:8px;flex-wrap:wrap}.review-tabs button{background:#eee7ce;border:0;padding:8px 12px;font-size:12px;border-radius:999px}.review-tabs [aria-pressed="true"]{background:#81955d;color:#fff6db}.review-page{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:24px;margin:24px 0}.review-page>img,.review-page .review-art img{width:100%;min-width:0}.review-page h3{font-size:30px;line-height:36px;margin:12px 0}.review-page p{font-size:14px;line-height:24px;color:#7a8362}.review-page .review-media-count{font-size:12px;margin:12px 0}.review-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px}.character-tools .text-button{margin-top:12px}.character-tools .content-note{font-size:12px;line-height:20px}@keyframes character-sway{from{transform:rotate(-2deg)}to{transform:rotate(2deg)}}@media(max-width:700px){.character-viewer{grid-template-columns:1fr;gap:16px}.character-plinth{max-width:250px;width:100%;justify-self:center}.character-tools h3{font-size:30px;line-height:36px}.character-tools label{margin-top:16px}.review-page{grid-template-columns:1fr;gap:16px}.review-page img{max-width:300px;margin:auto}.profile-facts{gap:8px}.profile-facts>div{padding:12px}}
.chapter-topline>p{background:#fff4d5db;padding:8px 12px;border-radius:999px}.character-plinth{align-items:flex-end;padding-bottom:48px}.avatar-image{object-position:center bottom}
.scene-canvas{flex-shrink:0;width:min(100%,calc((100svh - 284px)*4/3))}
@media(max-width:700px){.scene-canvas{width:100%}}
.comparison-canvas{width:100%;height:min(42svh,340px);aspect-ratio:auto;touch-action:none;cursor:ew-resize}.comparison-canvas.side-by-side{cursor:default;touch-action:pan-y}

/* === 6-Chapter Interactive Animation Theaters (Vibecoding Upgrade) === */
.vibe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 0 4px;
}
.vibe-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* 01 Scratch-to-Reveal Polaroid */
.polaroid-shell {
  width: min(100%, 420px);
  padding: 16px 16px 20px;
  border-radius: 16px;
  background: #fffdf8;
  border: 1px solid rgba(98, 104, 62, .16);
  box-shadow: 0 18px 46px rgba(72, 64, 44, .12);
}
.scratch-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #efe5cf;
  user-select: none;
  touch-action: none;
}
.scratch-img,
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scratch-canvas { cursor: crosshair; }
.polaroid-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: #62683e;
}
.scratch-pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.scratch-toast {
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: #edf3e0;
  color: #46532c;
  font-size: 14px;
}

/* 02 Physics Toy Stage */
.toy-hud {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #535d35;
}
.toy-canvas {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(98, 104, 62, .18);
  box-shadow: inset 0 2px 12px rgba(72, 64, 44, .06);
  cursor: pointer;
  touch-action: none;
}
.toy-reward {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  background: #fffdf7;
  border: 1px solid #d9cfa8;
  animation: fadeSlideUp .45s cubic-bezier(.22, 1, .36, 1);
}
.toy-reward img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
}
.toy-reward h4 { margin: 0 0 6px; color: #535d35; font-size: 15px; }
.toy-reward p { margin: 0; font-size: 13px; color: #6c6a58; line-height: 1.6; }

/* 03 3D Envelope & Audio Wave Postcard */
.envelope-3d {
  position: relative;
  width: min(100%, 660px);
  min-height: 300px;
  padding: 26px;
  border-radius: 22px;
  background: #efe3c8;
  border: 1px solid #d8c8a4;
  perspective: 1000px;
  overflow: hidden;
  transition: background .45s ease;
}
.envelope-3d.is-open { background: #fbf7ec; }
.env-flap {
  position: absolute;
  inset: 0 0 42% 0;
  background: linear-gradient(180deg, #e5d4b0, #efe3c8);
  clip-path: polygon(0 0, 100% 0, 50% 96%);
  transform-origin: top center;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .45s ease;
  z-index: 3;
}
.envelope-3d.is-open .env-flap {
  transform: rotateX(-175deg);
  opacity: 0;
  pointer-events: none;
}
.wax-seal {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid #f7e6cf;
  background: #c86f53;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 10px 24px rgba(154, 72, 48, .32);
  cursor: pointer;
  z-index: 4;
  transition: transform .3s ease, opacity .3s ease;
}
.wax-seal:hover { transform: translate(-50%, -50%) scale(1.08); }
.envelope-3d.is-open .wax-seal { opacity: 0; pointer-events: none; }
.postcard-sheet {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  align-items: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s .15s ease, transform .55s .15s cubic-bezier(.22, 1, .36, 1);
}
.envelope-3d.is-open .postcard-sheet { opacity: 1; transform: translateY(0); }
.postcard-left img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(64, 58, 42, .12);
}
.postcard-right { position: relative; }
.postcard-right h4 { margin: 6px 0 8px; font-size: 20px; color: #3b4228; }
.postcard-right p { margin: 0 0 14px; font-size: 14px; line-height: 1.75; color: #5f5b4e; }
.wave-player { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.wave-bars { display: flex; align-items: center; gap: 4px; height: 28px; }
.wave-bars i {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #909d66;
}
.wave-bars.is-playing i {
  animation: waveBounce .65s var(--d, 0s) ease-in-out infinite alternate;
}
.stamp-tray { display: flex; flex-wrap: wrap; gap: 8px; }
.ink-stamp {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border: 2px dashed #b96045;
  border-radius: 8px;
  color: #b96045;
  font-weight: 700;
  font-size: 14px;
  transform: rotate(-4deg);
  animation: stampPop .35s cubic-bezier(.34, 1.56, .64, 1);
}

/* 04 Night Lamp Cord & Starfield */
.night-stage {
  position: relative;
  padding: 16px;
  border-radius: 22px;
  background: #faf5e8;
  transition: background .7s ease, color .7s ease;
  overflow: hidden;
}
.night-stage.is-night {
  background: radial-gradient(circle at 75% 18%, #34395c 0%, #1c1f35 70%);
  color: #f6efd9;
}
.night-stage.is-night .panel-intro,
.night-stage.is-night .compare-control { color: #e8e1c8; }
.star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.lamp-cord {
  position: absolute;
  top: 0;
  right: 28px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  padding: 0 8px 8px;
  cursor: pointer;
  color: inherit;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.lamp-cord:active { transform: translateY(18px); }
.cord-string { width: 2px; height: 42px; background: #c59b5c; }
.cord-bead {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7b55a;
  box-shadow: 0 4px 12px rgba(231, 181, 90, .55);
}
.lamp-cord small { margin-top: 4px; font-size: 11px; opacity: .85; }
.night-stage .comparison-canvas { position: relative; z-index: 2; }
.night-intro { position: relative; z-index: 2; padding-right: 72px; }

/* 05 Window of Seasons */
.window-theater {
  position: relative;
  padding: 22px 20px 18px;
  border-radius: 24px;
  background: #f5eedb;
  border: 1px solid rgba(98, 104, 62, .14);
  overflow: hidden;
}
.window-frame {
  position: relative;
  width: min(100%, 580px);
  margin: 0 auto;
  border: 10px solid #d5bc92;
  border-radius: 18px 18px 8px 8px;
  background: #fffdf7;
  box-shadow: 0 18px 42px rgba(72, 64, 44, .12);
  overflow: hidden;
}
.window-sky {
  position: relative;
  width: 100%;
  height: 260px;
  transition: background .75s ease;
}
.weather-canvas { width: 100%; height: 100%; display: block; }
.window-mullions {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49%, rgba(213, 188, 146, .88) 49%, rgba(213, 188, 146, .88) 51%, transparent 51%),
    linear-gradient(0deg, transparent 48%, rgba(213, 188, 146, .88) 48%, rgba(213, 188, 146, .88) 51%, transparent 51%);
}
.window-sill {
  position: relative;
  height: 22px;
  background: #c7a978;
}
.sill-cat {
  position: absolute;
  right: 28px;
  bottom: 4px;
  width: 138px;
  height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(64, 54, 38, .22));
}
.floor-light {
  width: min(86%, 480px);
  height: 54px;
  margin: 12px auto 6px;
  background: linear-gradient(180deg, rgba(255, 232, 168, .55), rgba(255, 232, 168, 0));
  transform: skewX(var(--angle, -18deg));
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
  border-radius: 6px;
}
.window-poem {
  text-align: center;
  margin: 8px 0 0;
  font-size: 15px;
  color: #535d35;
  letter-spacing: .04em;
}

/* 06 3D Holographic Exhibition Pass */
.ticket-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
  perspective: 1100px;
}
.holo-ticket {
  position: relative;
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 20px;
  align-items: center;
  padding: 28px 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffdf7 0%, #f5ebd2 55%, #e8ecd8 100%);
  border: 1.5px solid rgba(144, 157, 102, .45);
  box-shadow: 0 24px 60px rgba(72, 66, 46, .16);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}
.holo-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), rgba(255, 240, 175, .48) 0%, rgba(186, 224, 198, .18) 32%, transparent 65%);
  mix-blend-mode: overlay;
}
.ticket-eyebrow {
  font: 600 11px/1.2 "Avenir Next", sans-serif;
  letter-spacing: .18em;
  color: #82865f;
}
.ticket-left h3 { margin: 8px 0 4px; font-size: 28px; color: #3d4528; }
.ticket-sub { margin: 0 0 16px; font-size: 13px; color: #71755a; }
.ticket-meta {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 13px;
}
.ticket-meta div { display: flex; gap: 10px; }
.ticket-meta dt { color: #82865f; min-width: 64px; }
.ticket-meta dd { margin: 0; color: #2f3522; font-weight: 600; }
.ticket-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-left: 1.5px dashed rgba(98, 104, 62, .25);
  padding-left: 18px;
}
.ticket-right img { width: 132px; height: 132px; object-fit: contain; }
.ticket-right span { font-size: 12px; letter-spacing: .12em; color: #62683e; }
.ticket-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.ticket-tools input {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #c9c2ab;
  background: #fffdf8;
  font-size: 14px;
  color: #3d4528;
}

@keyframes waveBounce {
  from { height: 6px; opacity: .55; }
  to { height: 26px; opacity: 1; }
}
@keyframes stampPop {
  from { transform: scale(1.6) rotate(-10deg); opacity: 0; }
  to { transform: scale(1) rotate(-4deg); opacity: 1; }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .postcard-sheet { grid-template-columns: 1fr; }
}

.ticket-keepsake-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(139, 150, 97, .35);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ticket-keepsake-note strong {
  font-size: 12px;
  font-weight: 600;
  color: #535d35;
  line-height: 1.5;
}
.ticket-keepsake-note span {
  font-size: 11px;
  color: #828765;
  letter-spacing: .04em;
}

@media (max-width: 720px) {
  .ticket-keepsake-note {
    margin-top: 7px;
    padding-top: 6px;
    gap: 2px;
  }
  .ticket-keepsake-note strong {
    font-size: 9px;
    line-height: 1.38;
  }
  .ticket-keepsake-note span {
    font-size: 8.5px;
  }
}

/* === 05 Option A: Museum-Grade 35mm Four-Season Film Grading Table === */
.film-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 14px;
  border-radius: 20px;
  background: #fcf8ef;
  border: 1px solid rgba(83, 93, 53, .14);
}
.film-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 11px/1.2 "Avenir Next", ui-monospace, monospace;
  letter-spacing: .16em;
  color: #6c724c;
}
.viewfinder-wrap {
  position: relative;
  width: min(100%, 580px);
  padding: 20px 24px 24px;
  border: 1px solid rgba(83, 93, 53, .28);
  background: #fffdf8;
}
.vf-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #535d35;
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.vf-corner.tl { top: -6px; left: -6px; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf-corner.tr { top: -6px; right: -6px; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf-corner.bl { bottom: -6px; left: -6px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf-corner.br { bottom: -6px; right: -6px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vf-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font: 500 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  color: #535d35;
}
.vf-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efe6d4;
}
.vf-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .35s ease;
}
.vf-layer { opacity: 0; }
.vf-layer.is-active { opacity: 1; }
.vf-leak {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: background .45s ease;
}
.vf-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: radial-gradient(#3b3528 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}
.film-poem {
  margin: 2px 0 0;
  font-size: 14px;
  color: #535d35;
  letter-spacing: .04em;
  text-align: center;
}
.film-controls {
  width: min(100%, 580px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.optical-rail-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.optical-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #dcd5c1;
  outline: none;
  cursor: grab;
}
.optical-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffdf8;
  border: 2px solid #535d35;
  box-shadow: 0 3px 10px rgba(83, 93, 53, .22);
  cursor: grabbing;
}
.optical-ticks {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 9px;
  height: 10px;
}
.optical-ticks i {
  width: 1px;
  height: 5px;
  background: rgba(83, 93, 53, .32);
}
.optical-ticks i.major {
  height: 10px;
  background: #535d35;
}
.optical-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.optical-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: 0;
  padding: 4px 2px;
  cursor: pointer;
  color: #82865f;
  transition: color .25s ease;
}
.optical-stop span { font-size: 14px; font-weight: 500; }
.optical-stop small { font: 500 10px/1 "Avenir Next", sans-serif; letter-spacing: .1em; opacity: .7; }
.optical-stop.is-active { color: #3d4528; }
.optical-stop.is-active span { font-weight: 700; }
.film-swatches {
  display: flex;
  gap: 8px;
  align-items: center;
}
.film-swatches i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(83, 93, 53, .14);
  transition: background .4s ease;
}
@media (max-width: 560px) {
  .film-controls { grid-template-columns: 1fr; }
  .film-swatches { justify-content: center; }
}

/* === 01 Upgraded: Mist Blow/Focus Ritual + Tactile Polaroid Desk === */
.scratch-img {
  transition: filter .22s ease;
  will-change: filter, transform;
}
.develop-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 252, 240, .96), rgba(255, 244, 214, .45) 60%, transparent 85%);
}
.develop-flash.is-flashing {
  animation: developFlash .85s ease forwards;
}
.polaroid-shell.is-developed {
  animation: polaroidSettle .55s cubic-bezier(.34, 1.56, .64, 1);
}
.develop-stamp {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .16em;
  color: #909d66;
  font-weight: 600;
  animation: fadeSlideUp .45s ease;
}
.blow-meter {
  width: min(100%, 420px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f5efde;
  border: 1px solid rgba(98, 104, 62, .18);
  font-size: 12px;
  color: #535d35;
}
.mic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c86f53;
  flex-shrink: 0;
  animation: micPulse 1.1s ease-in-out infinite alternate;
}
.mic-status {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blow-bar {
  width: 84px;
  height: 6px;
  border-radius: 999px;
  background: rgba(98, 104, 62, .16);
  overflow: hidden;
  flex-shrink: 0;
}
.blow-bar i {
  display: block;
  width: 0%;
  height: 100%;
  background: #909d66;
  transition: width .08s linear;
}

/* Scattered Polaroid Desk */
.polaroid-desk {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 22px;
  padding: 24px 14px 28px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 45%, #f5ebd4 0%, #faf5e8 75%);
  border: 1px solid rgba(98, 104, 62, .14);
}
.desk-card {
  width: min(100%, 206px);
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--rot, 0deg));
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), z-index 0s;
  position: relative;
  z-index: 1;
}
.desk-card:hover,
.desk-card:focus-within {
  transform: translate(0, -10px) rotate(0deg) scale(1.07);
  z-index: 10;
}
.desk-photo-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 11px 11px 14px;
  border-radius: 10px;
  background: #fffdf8;
  border: 1px solid rgba(98, 104, 62, .14);
  box-shadow: 0 14px 32px rgba(72, 64, 44, .14);
  text-align: left;
  cursor: pointer;
  transition: box-shadow .35s ease;
}
.desk-card:hover .desk-photo-btn {
  box-shadow: 0 22px 46px rgba(72, 64, 44, .22);
}
.desk-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  overflow: hidden;
  background: #efe6d4;
}
.desk-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.desk-caption {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.desk-caption strong {
  font-size: 13px;
  color: #3d4528;
}
.desk-caption small {
  font-size: 11px;
  color: #7c7a66;
  line-height: 1.4;
}
.desk-zoom-badge {
  margin-top: 8px;
  align-self: flex-end;
  font-size: 11px;
  color: #909d66;
  font-weight: 600;
}

@keyframes developFlash {
  0% { opacity: 0; }
  30% { opacity: .9; }
  100% { opacity: 0; }
}
@keyframes polaroidSettle {
  0% { transform: scale(.97); }
  55% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@keyframes micPulse {
  from { opacity: .45; transform: scale(.85); }
  to { opacity: 1; transform: scale(1.15); }
}

/* === 01 Authentic Hanging Polaroid Exhibition Board === */
.polaroid-board {
  position: relative;
  padding: 28px 20px 36px;
  border-radius: 18px;
  border: 10px solid #d7be94;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 253, 248, .55) 0%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(164, 146, 114, .035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(164, 146, 114, .03) 0 1px, transparent 1px 4px),
    #f3ead6;
  box-shadow:
    inset 0 4px 18px rgba(102, 84, 52, .14),
    0 14px 36px rgba(72, 64, 44, .12);
  overflow: hidden;
}
.board-twine {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 58px;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 3px 2px rgba(72, 58, 34, .16));
}
.polaroid-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 22px 26px;
  padding-top: 8px;
}
.real-polaroid {
  position: relative;
  width: 196px;
  padding: 13px 13px 46px 13px;
  border-radius: 2px;
  border: 1px solid rgba(212, 202, 182, .75);
  background: linear-gradient(175deg, #ffffff 0%, #fcfaf3 100%);
  box-shadow:
    0 2px 4px rgba(58, 48, 32, .10),
    0 14px 28px rgba(58, 48, 32, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .9);
  transform-origin: 50% 6%;
  transform: translateY(var(--ty, 0px)) rotate(var(--rot, 0deg));
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), box-shadow .42s ease;
  cursor: pointer;
  text-align: left;
}
.real-polaroid:hover,
.real-polaroid:focus-visible {
  transform: translateY(calc(var(--ty, 0px) - 8px)) rotate(0deg) scale(1.06);
  box-shadow:
    0 6px 12px rgba(58, 48, 32, .12),
    0 24px 44px rgba(58, 48, 32, .24);
  z-index: 8;
}
.polaroid-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 58px;
  height: 20px;
  background: var(--tbg, #d9c59a);
  opacity: .84;
  transform: translateX(-50%) rotate(var(--trot, -4deg));
  box-shadow: 0 2px 4px rgba(64, 52, 32, .14);
  border-left: 1px dashed rgba(255, 255, 255, .5);
  border-right: 1px dashed rgba(255, 255, 255, .5);
  pointer-events: none;
}
.polaroid-well {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eae2d0;
  overflow: hidden;
  box-shadow: inset 0 1px 5px rgba(42, 36, 24, .22);
}
.polaroid-well img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.polaroid-chin {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.polaroid-hand {
  font-family: "STKaiti", "Kaiti SC", "Songti SC", Georgia, serif;
  font-size: 13px;
  color: #4c4a3e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.polaroid-folio {
  font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #9b9582;
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .polaroid-board { padding: 24px 12px 28px; border-width: 7px; }
  .real-polaroid { width: 158px; padding: 10px 10px 38px 10px; }
  .polaroid-hand { font-size: 11px; }
}

/* === 01 Held-Polaroid Floating Inspection Overlay === */
.real-polaroid.is-picked {
  opacity: .24;
  filter: grayscale(.2);
}
.polaroid-hold-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: rgba(42, 36, 26, .46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  perspective: 1100px;
  cursor: pointer;
}
.polaroid-hold-backdrop[hidden] {
  display: none;
}
.held-polaroid {
  position: relative;
  width: min(82vw, 350px);
  padding: 18px 18px 62px 18px;
  border-radius: 3px;
  border: 1px solid rgba(226, 218, 200, .85);
  background: linear-gradient(175deg, #ffffff 0%, #fcfaf3 100%);
  box-shadow:
    0 10px 24px rgba(32, 26, 16, .20),
    0 36px 76px rgba(32, 26, 16, .34),
    inset 0 0 0 1px rgba(255, 255, 255, .95);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
  animation: polaroidLift .48s cubic-bezier(.22, 1, .36, 1) forwards;
  outline: none;
}
.held-chin {
  left: 20px;
  right: 20px;
  bottom: 16px;
}
.held-chin .polaroid-hand {
  font-size: 16px;
}
.held-chin .polaroid-folio {
  font-size: 12px;
}
@keyframes polaroidLift {
  from {
    opacity: 0;
    transform: translateY(34px) scale(.76) rotate(var(--start-rot, -4deg));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* === 02 Museum-Grade: Elastic Yarn Pull & Purr Haptic Resonance === */
.yarn-topbar {
  width: min(100%, 680px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #535d35;
}
.yarn-btn-group {
  display: flex;
  gap: 8px;
}
.yarn-canvas {
  width: min(100%, 680px);
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(98, 104, 62, .16);
  background: #fcf8ef;
  box-shadow: inset 0 2px 10px rgba(72, 64, 44, .05);
  cursor: grab;
  touch-action: none;
}
.yarn-canvas:active { cursor: grabbing; }
.yarn-milestones {
  width: min(100%, 680px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.yarn-tag {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4eedf;
  border: 1px solid rgba(98, 104, 62, .12);
  color: #82865f;
  font-size: 12px;
  line-height: 1.5;
  opacity: .55;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1), background .35s ease, color .35s ease, border-color .35s ease;
}
.yarn-tag.is-lit {
  opacity: 1;
  transform: translateY(0);
  background: #fffdf7;
  border-color: #cf7c52;
  color: #3b4228;
  box-shadow: 0 8px 20px rgba(207, 124, 82, .12);
}
.yarn-tag small {
  font: 600 11px/1.4 ui-monospace, monospace;
  color: #cf7c52;
  flex-shrink: 0;
}
.yarn-keepsake {
  width: min(100%, 680px);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #fffdf8;
  border: 1px solid rgba(207, 124, 82, .35);
  box-shadow: 0 14px 32px rgba(72, 64, 44, .10);
  animation: fadeSlideUp .45s cubic-bezier(.22, 1, .36, 1);
}
.yarn-keepsake img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
}
.yarn-keepsake-copy h4 { margin: 6px 0; font-size: 15px; color: #3d4528; }
.yarn-keepsake-copy p { margin: 0; font-size: 12px; color: #7c7a66; }

/* Purr Resonance Medallion */
.purr-medallion {
  position: relative;
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.purr-rings i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(144, 157, 102, .24);
  pointer-events: none;
  transition: transform .4s ease, border-color .4s ease;
}
.purr-rings i:nth-child(2) { inset: -14px; opacity: .6; }
.purr-rings i:nth-child(3) { inset: -28px; opacity: .35; }
.purr-medallion.is-petting .purr-rings i {
  border-color: rgba(207, 124, 82, .52);
  animation: purrPulse 1.2s ease-in-out infinite alternate;
}
.purr-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.arc-bg {
  fill: none;
  stroke: rgba(98, 104, 62, .14);
  stroke-width: 4;
}
.arc-fill {
  fill: none;
  stroke: #cf7c52;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset .12s linear;
}
.purr-portrait {
  position: relative;
  z-index: 2;
  width: 186px;
  height: 186px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fffdf8 0%, #f3e6c8 100%);
  border: 1px solid rgba(98, 104, 62, .18);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(72, 64, 44, .12);
}
.purr-portrait img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  pointer-events: none;
  transition: transform .35s ease;
}
.purr-medallion.is-petting .purr-portrait img {
  transform: scale(1.04);
}
.purr-glow {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 184, 102, .38) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.purr-medallion.is-petting .purr-glow { opacity: 1; }
.purr-hud {
  width: min(100%, 540px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #535d35;
}
.purr-keepsake {
  width: min(100%, 480px);
  padding: 14px;
  border-radius: 18px;
  background: #fffdf8;
  border: 1px solid rgba(144, 157, 102, .32);
  box-shadow: 0 16px 40px rgba(72, 64, 44, .12);
  animation: fadeSlideUp .45s cubic-bezier(.22, 1, .36, 1);
}
.purr-caption {
  margin: 0 0 10px;
  text-align: center;
  font-size: 14px;
  color: #535d35;
  font-weight: 600;
}
.purr-video-frame video {
  width: 100%;
  max-height: 280px;
  border-radius: 12px;
  background: #23201b;
  display: block;
}
@keyframes purrPulse {
  from { transform: scale(.98); }
  to { transform: scale(1.05); }
}
@media (max-width: 580px) {
  .yarn-milestones { grid-template-columns: 1fr; }
  .yarn-keepsake { grid-template-columns: 1fr; }
  .yarn-keepsake img { width: 100%; height: 180px; }
}

/* === 02 Museum-Grade Specimen Growth Scale & Tactile Purr Frame === */
.ruler-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 16px;
  border-radius: 20px;
  background: #fcf8ef;
  border: 1px solid rgba(83, 93, 53, .14);
}
.ruler-grid {
  width: min(100%, 640px);
  display: grid;
  grid-template-columns: 44px 1fr 176px;
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(83, 93, 53, .26);
  background: #fffdf8;
}
.v-ruler {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(83, 93, 53, .28);
  padding-right: 6px;
}
.v-ruler-scale {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.v-tick {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font: 500 10px/1 ui-monospace, Menlo, monospace;
  color: #6c724c;
}
.v-tick::after {
  content: "";
  width: 7px;
  height: 1px;
  margin-left: 5px;
  background: #535d35;
}
.v-ruler-unit {
  font: 600 9px/1 ui-monospace, monospace;
  letter-spacing: .12em;
  color: #82865f;
  text-align: right;
  margin-top: 6px;
}
.specimen-stage {
  position: relative;
  min-height: 290px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1.5px solid rgba(83, 93, 53, .28);
  background: radial-gradient(circle at 50% 80%, rgba(235, 224, 198, .42) 0%, transparent 72%);
}
.ref-bottle-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(200, 131, 83, .55);
  pointer-events: none;
  z-index: 1;
}
.ref-bottle-line span {
  position: absolute;
  left: 6px;
  top: -16px;
  font: 500 10px/1.2 "PingFang SC", sans-serif;
  color: #b66c3f;
  background: rgba(255, 253, 248, .85);
  padding: 1px 4px;
}
.specimen-figure {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 290px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.specimen-figure[hidden],
.specimen-photo-box[hidden],
.paw-1to1-stage[hidden] { display: none; }
.specimen-cat {
  width: auto;
  height: 38%;
  object-fit: contain;
  transform-origin: bottom center;
  transition: height .14s ease-out;
  filter: drop-shadow(0 8px 14px rgba(64, 56, 38, .16));
}
.specimen-photo-box {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 290px;
  padding: 10px;
}
.specimen-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.paw-1to1-stage {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 290px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.paw-mm-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.paw-mm-col small {
  font-size: 11px;
  color: #535d35;
}
.paw-mm-circle {
  border-radius: 50%;
  border: 1.5px dashed #535d35;
  background: rgba(207, 158, 72, .16);
  display: grid;
  place-items: center;
  font: 600 11px/1 ui-monospace, monospace;
  color: #3d4528;
}
.paw-mm-circle.is-kitten { width: 22mm; height: 22mm; }
.paw-mm-circle.is-adult { width: 41mm; height: 41mm; }

.telemetry-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(83, 93, 53, .16);
}
.tel-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tel-k {
  font-size: 11px;
  letter-spacing: .1em;
  color: #82865f;
}
.tel-v {
  font: 600 20px/1.2 "Avenir Next", ui-monospace, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #3d4528;
}
.tel-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: #5f5b4e;
}
.ruler-controls {
  width: min(100%, 640px);
}

/* Tactile Purr Frame (Zero progress bar) */
.tactile-purr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 12px;
  border-radius: 20px;
  background: #fcf8ef;
  border: 1px solid rgba(83, 93, 53, .14);
}
.tactile-purr-frame {
  position: relative;
  width: min(100%, 580px);
  aspect-ratio: 58 / 40;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(83, 93, 53, .22);
  background: #2b261e;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.purr-bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.92) contrast(1.02) saturate(.96);
  transition: transform 1.2s ease, filter .6s ease;
}
.tactile-purr-frame.is-touching .purr-bg-photo {
  transform: scale(1.025);
  filter: brightness(1.0) contrast(1.03) saturate(1.02);
}
.purr-warm-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, transparent 38%, rgba(36, 30, 20, .42) 100%);
}
.ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.purr-footer {
  width: min(100%, 580px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.purr-whisper {
  margin: 0;
  font-size: 13px;
  color: #535d35;
  letter-spacing: .04em;
}
@media (max-width: 600px) {
  .ruler-grid { grid-template-columns: 38px 1fr; }
  .telemetry-col { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(83, 93, 53, .16); padding-left: 0; padding-top: 10px; flex-direction: row; flex-wrap: wrap; }
  .tel-item { min-width: 30%; }
}


/* ============================================================================
   MUSEUM-GRADE FULL OVERHAUL STYLES (STAGE PARALLAX + CHAPTERS 01–06)
   ============================================================================ */

.archive-dialog [hidden] {
  display: none !important;
}

/* --- Outer Chapter Stage: 3D Parallax, Ambient Motes, Pulse Beacons & Passport --- */
.passport-mini {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(244, 234, 206, .72);
  border: 1px solid rgba(98, 104, 62, .16);
}
.passport-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #535d35;
  margin-bottom: 8px;
}
.passport-mini-head strong {
  font: 600 12px/1 ui-monospace, SFMono-Regular, monospace;
  color: #3d4528;
}
.passport-stamps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.p-stamp {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 8px;
  font: 600 11px/1 ui-monospace, monospace;
  background: rgba(255, 253, 246, .7);
  border: 1px dashed rgba(98, 104, 62, .28);
  color: #82865f;
  text-decoration: none;
  transition: transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.p-stamp:hover {
  transform: translateY(-2px);
}
.p-stamp.is-partial {
  border-style: solid;
  border-color: #909d66;
  background: #eff3df;
  color: #4b5830;
}
.p-stamp.is-complete {
  border-style: solid;
  border-color: #535d35;
  background: #535d35;
  color: #fffdf6;
}
.p-stamp.is-current {
  box-shadow: 0 0 0 2px #c88353;
}

.stage-3d {
  transform: perspective(1200px) rotateX(var(--stage-rx, 0deg)) rotateY(var(--stage-ry, 0deg));
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.stage-3d > .scene-image {
  position: relative;
  z-index: 1;
  filter: drop-shadow(var(--stage-sx, 0px) 18px 26px rgba(62, 54, 34, .18));
  transition: filter .22s ease;
}
.stage-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.stage-shadow {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 4%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(66, 58, 36, .22) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hotspot-layer {
  z-index: 3;
}
.hotspot-pulse {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--chapter-accent, #c88353);
  opacity: .75;
  pointer-events: none;
  z-index: -1;
  animation: beaconPulse 2.1s cubic-bezier(.22, 1, .36, 1) infinite;
}
.hotspot.explored .hotspot-pulse {
  animation: none;
  opacity: .22;
  transform: scale(1.18);
  border-color: #7c9857;
}
@keyframes beaconPulse {
  0% { transform: scale(.92); opacity: .82; }
  75% { transform: scale(1.85); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* --- 01 初见: Brass Carrier Slide-Latch & Authentic SX-70 Instant Card --- */
.carrier-latch-bar {
  width: min(100%, 440px);
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8dec5 0%, #f3ebd8 100%);
  border: 1px solid rgba(138, 114, 72, .32);
  box-shadow: inset 0 2px 6px rgba(78, 62, 36, .12);
  transition: background .35s ease, border-color .35s ease;
}
.carrier-latch-bar.is-unlatched {
  background: #edf2df;
  border-color: rgba(124, 152, 87, .42);
}
.latch-track {
  position: relative;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  cursor: pointer;
  user-select: none;
}
.latch-hint {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #5b533c;
  text-align: center;
}
.carrier-latch-bar.is-unlatched .latch-hint {
  color: #46572d;
}
.latch-knob {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #b38a4c;
  background: radial-gradient(circle at 35% 30%, #fff6dc 0%, #dfc084 65%, #be9654 100%);
  box-shadow: 0 3px 10px rgba(78, 58, 28, .24);
  display: grid;
  place-items: center;
  font-size: 15px;
  transform: translateX(var(--latch-px, 0px));
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), left .38s cubic-bezier(.22, 1, .36, 1);
  touch-action: none;
}
.carrier-latch-bar.is-unlatched .latch-knob {
  left: calc(100% - 38px);
  background: radial-gradient(circle at 35% 30%, #f6faea 0%, #a5bc78 100%);
  border-color: #6c8347;
}

.sx70-stage-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .45s ease;
}
.sx70-stage-wrap.is-locked {
  opacity: .72;
  transform: translateY(-6px) scale(.985);
}
.sx70-stage-wrap.is-ejected {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.sx70-develop-card {
  width: min(100%, 380px);
  padding: 16px 16px 22px;
  border-radius: 3px;
  background: linear-gradient(175deg, #ffffff 0%, #fcfaf3 100%);
  border: 1px solid rgba(208, 198, 178, .85);
  box-shadow:
    0 4px 10px rgba(58, 48, 32, .08),
    0 20px 44px rgba(58, 48, 32, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .92);
}
.sx70-develop-card .scratch-box {
  border-radius: 1px;
  box-shadow: inset 0 1px 6px rgba(42, 36, 24, .22);
}
.scratch-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sx70-develop-card.is-developed {
  animation: polaroidSettle .55s cubic-bezier(.34, 1.56, .64, 1);
}
.sx70-chin {
  margin-top: 14px;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sx70-chin-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.sx70-optics {
  font: 600 11px/1 ui-monospace, SFMono-Regular, monospace;
  color: #6c724c;
}
.sx70-chin-sub {
  display: flex;
  justify-content: space-between;
  font: 500 10px/1 ui-monospace, monospace;
  letter-spacing: .12em;
  color: #9b9582;
}
.held-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 35%), rgba(255, 255, 255, .36) 0%, transparent 58%);
  mix-blend-mode: soft-light;
}

/* --- 02 幼年: Vernier Caliper Hairline, Anatomical Paw SVG & Purr Telemetry --- */
.vernier-hairline {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1.5px solid #535d35;
  pointer-events: none;
  z-index: 4;
  transition: bottom .12s ease-out;
}
.vernier-hairline span {
  position: absolute;
  right: 6px;
  top: -19px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #535d35;
  color: #fffdf7;
  font: 600 10px/1.2 ui-monospace, monospace;
}
.paw-mm-circle {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4px;
  background: radial-gradient(circle, rgba(224, 182, 112, .22) 0%, rgba(207, 158, 72, .08) 75%);
}
.paw-impression-svg {
  width: 68%;
  height: 68%;
  fill: rgba(83, 93, 53, .72);
}
.paw-mm-circle span {
  position: absolute;
  bottom: -18px;
  font: 600 10px/1 ui-monospace, monospace;
  color: #535d35;
  white-space: nowrap;
}
.paw-mm-col strong {
  margin-top: 10px;
  font-size: 13px;
  color: #3d4528;
}
.purr-telemetry-bar {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 11px/1.2 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .1em;
  color: rgba(255, 248, 226, .88);
  text-shadow: 0 1px 4px rgba(20, 16, 10, .55);
  pointer-events: none;
}

/* --- 03 日常: Airmail Postcard Free-Stamping & Vinyl Phonograph --- */
.letter-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.envelope-3d.airmail-trim {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-image: repeating-linear-gradient(
    -45deg,
    #c86f53 0 12px,
    #fbf7ec 12px 20px,
    #687d56 20px 32px,
    #fbf7ec 32px 40px
  ) 6;
}
.wax-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 78px;
  height: 78px;
  font-size: 24px;
}
.wax-seal small {
  font-size: 10px;
  letter-spacing: .06em;
  opacity: .92;
}
.envelope-3d.is-open .postcard-sheet {
  position: relative;
  cursor: crosshair;
}
.postcard-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.postcard-date {
  font: 500 10px/1.2 ui-monospace, monospace;
  letter-spacing: .1em;
  color: #8b866e;
  text-align: center;
}
.stamp-desk {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(98, 104, 62, .2);
}
.stamp-desk-hint {
  font-size: 11px;
  color: #7c7a66;
}
.postcard-stamp-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.postmark-seal {
  position: absolute;
  width: 92px;
  height: 92px;
  margin-left: -46px;
  margin-top: -46px;
  border-radius: 50%;
  border: 2.5px solid var(--seal-color, #b96045);
  color: var(--seal-color, #b96045);
  display: grid;
  place-items: center;
  transform: rotate(var(--seal-rot, -8deg));
  mix-blend-mode: multiply;
  opacity: .88;
  animation: postmarkThump .32s cubic-bezier(.34, 1.56, .64, 1);
}
.postmark-ring-outer {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px dashed var(--seal-color, #b96045);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  padding: 4px;
}
.postmark-ring-outer small {
  font: 600 7px/1 ui-monospace, monospace;
  letter-spacing: .06em;
}
.postmark-ring-outer strong {
  font-size: 11px;
  line-height: 1.15;
  padding: 2px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
@keyframes postmarkThump {
  from { transform: scale(1.65) rotate(var(--seal-rot, -8deg)); opacity: 0; }
  to { transform: scale(1) rotate(var(--seal-rot, -8deg)); opacity: .88; }
}

/* Vinyl Phonograph */
.vinyl-turntable-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fcf8ef;
  border: 1px solid rgba(83, 93, 53, .16);
}
.turntable-deck {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: center;
}
.platter-cabinet {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(145deg, #efe4ca 0%, #e1d1ae 100%);
  border: 1px solid rgba(122, 102, 66, .32);
  box-shadow:
    inset 0 2px 8px rgba(255, 252, 242, .65),
    0 14px 32px rgba(68, 58, 38, .14);
  display: grid;
  place-items: center;
}
.vinyl-platter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 8px;
  background: #c8b48a;
  box-shadow: inset 0 3px 10px rgba(48, 38, 22, .28);
}
.vinyl-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1f1e1b;
  box-shadow: 0 8px 20px rgba(24, 20, 14, .38);
  display: grid;
  place-items: center;
  cursor: pointer;
  animation: vinylSpin var(--spin-dur, 3.8s) linear infinite;
  animation-play-state: paused;
}
.vinyl-disc.is-spinning {
  animation-play-state: running;
}
.vinyl-grooves {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 250, 235, .06) 0 1px,
    transparent 1px 4px
  );
  pointer-events: none;
}
.vinyl-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 35deg,
    transparent 0deg,
    rgba(255, 248, 226, .16) 28deg,
    transparent 62deg,
    transparent 180deg,
    rgba(255, 248, 226, .14) 210deg,
    transparent 245deg
  );
  pointer-events: none;
}
.vinyl-label {
  position: relative;
  z-index: 2;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  border: 3px solid #e7d3a5;
  overflow: hidden;
  box-shadow: 0 0 0 4px #181715;
}
.vinyl-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vinyl-spindle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #f5ebd2;
  border: 2px solid #5c513c;
}
.tonearm-assembly {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 72px;
  height: 176px;
  pointer-events: none;
  z-index: 4;
  transform-origin: 52px 20px;
  transform: rotate(0deg);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.tonearm-assembly.is-engaged {
  transform: rotate(24deg);
}
.tonearm-pivot {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5d8, #b89252);
  border: 1.5px solid #7d6133;
  box-shadow: 0 4px 10px rgba(48, 36, 18, .25);
}
.tonearm-rod {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 4px;
  height: 128px;
  border-radius: 3px;
  background: linear-gradient(90deg, #d8bc84, #fff6df, #a9864a);
  transform-origin: top center;
  transform: rotate(8deg);
  box-shadow: 2px 4px 8px rgba(36, 28, 14, .22);
}
.tonearm-headshell {
  position: absolute;
  right: 30px;
  bottom: 18px;
  width: 14px;
  height: 22px;
  border-radius: 3px;
  background: #535d35;
  border: 1px solid #d8bc84;
  transform: rotate(22deg);
}
.deck-rpm-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 4px;
  z-index: 5;
}
.rpm-pill {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(83, 93, 53, .28);
  background: rgba(255, 252, 244, .82);
  font: 600 10px/1.2 ui-monospace, monospace;
  color: #6c724c;
}
.rpm-pill.is-on {
  background: #535d35;
  color: #fffdf7;
  border-color: #535d35;
}
.vinyl-console {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vinyl-console h4 {
  margin: 0;
  font-size: 20px;
  color: #3d4528;
}
.vinyl-console p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6c6a58;
}
.vinyl-eq-canvas {
  width: 100%;
  max-width: 320px;
  height: 56px;
  display: block;
}
.vinyl-track-list {
  display: grid;
  gap: 6px;
}
.vinyl-track-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(98, 104, 62, .16);
  background: #f5efe0;
  text-align: left;
  transition: background .2s ease, border-color .2s ease;
}
.vinyl-track-btn span {
  font: 600 10px/1 ui-monospace, monospace;
  color: #82865f;
  flex-shrink: 0;
}
.vinyl-track-btn strong {
  font-size: 13px;
  color: #3d4528;
}
.vinyl-track-btn.is-selected {
  background: #fffdf8;
  border-color: #535d35;
  box-shadow: 0 6px 16px rgba(83, 93, 53, .10);
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- 04 远行: Spring-Physics Lamp Cord & 360° Dream Magic Lantern --- */
.lamp-cord {
  touch-action: none;
  user-select: none;
  cursor: grab;
  transition: none;
}
.lamp-cord:active {
  transform: none;
  cursor: grabbing;
}
.cord-mount {
  width: 16px;
  height: 6px;
  border-radius: 0 0 4px 4px;
  background: #b58d4d;
}
.cord-string {
  width: 2px;
  height: 44px;
  background: repeating-linear-gradient(180deg, #d7b06a 0 3px, #9e783a 3px 5px);
}
.night-topbar {
  position: relative;
  z-index: 2;
  padding-right: 76px;
  margin-bottom: 6px;
}
.night-stage.is-night .night-topbar {
  color: rgba(246, 239, 217, .78);
}
.night-bottom-row {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.night-bottom-row .compare-control {
  margin-top: 0;
  flex: 1;
  min-width: 220px;
}

/* 360° Optical Magic Lantern */
.lantern-theater {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fcf8ef;
  border: 1px solid rgba(83, 93, 53, .16);
}
.lantern-viewport {
  position: relative;
  width: 100%;
  height: 290px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 48%, #3c3328 0%, #1d1915 78%);
  border: 1px solid rgba(138, 114, 72, .38);
  perspective: 1000px;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.lantern-viewport:active {
  cursor: grabbing;
}
.lantern-beam-glow {
  position: absolute;
  width: 280px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 138, .32) 0%, transparent 70%);
  pointer-events: none;
}
.lantern-drum {
  position: relative;
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
  transform: translateZ(-170px) rotateY(0deg);
}
.lantern-panel {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 10px 10px 8px;
  border-radius: 10px;
  background: rgba(255, 250, 236, .94);
  border: 1.5px solid rgba(212, 180, 122, .72);
  box-shadow: 0 12px 30px rgba(12, 10, 8, .42);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: rotateY(var(--panel-deg, 0deg)) translateZ(175px);
  backface-visibility: visible;
  transition: border-color .3s ease;
}
.lantern-panel.is-front {
  border-color: #f3c878;
}
.lantern-media-wrap {
  flex: 1;
  min-height: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #2b251d;
  display: grid;
  place-items: center;
}
.lantern-media-wrap img,
.lantern-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--lantern-blur, 0px)) sepia(var(--lantern-sepia, .08));
  pointer-events: none;
}
.lantern-panel.is-silhouette .lantern-media-wrap {
  background: radial-gradient(circle at 50% 45%, #463d5c 0%, #221f33 100%);
}
.lantern-panel.is-silhouette .lantern-media-wrap img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}
.lantern-panel figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.lantern-panel figcaption span {
  font: 600 9px/1 ui-monospace, monospace;
  color: #8b7b5b;
}
.lantern-panel figcaption strong {
  font-size: 11px;
  color: #3b3527;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lantern-caption-box {
  padding: 10px 14px;
  border-radius: 12px;
  background: #f5efe0;
  border: 1px solid rgba(98, 104, 62, .14);
}
.lantern-caption-box strong {
  display: block;
  font-size: 14px;
  color: #3d4528;
  margin-bottom: 3px;
}
.lantern-caption-box p {
  margin: 0;
  font-size: 12px;
  color: #666353;
  line-height: 1.55;
}
.lantern-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* --- 05 陪伴: 35mm Contact Strip & 8mm Hand-Cranked Projector --- */
.contact-strip {
  width: min(100%, 580px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #26231d;
  border-top: 3px dashed rgba(246, 238, 218, .35);
  border-bottom: 3px dashed rgba(246, 238, 218, .35);
}
.contact-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: .62;
  transition: opacity .22s ease, border-color .22s ease, transform .22s ease;
}
.contact-cell:hover,
.contact-cell.is-selected {
  opacity: 1;
  border-color: #e2b86b;
}
.contact-code {
  font: 500 8px/1 ui-monospace, monospace;
  color: #e2b86b;
  letter-spacing: .06em;
}
.contact-cell img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* 8mm Hand-Cranked Projector */
.projector-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fcf8ef;
  border: 1px solid rgba(83, 93, 53, .16);
}
.projector-rig {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 18px;
  align-items: stretch;
}
.projector-screen-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #24211b;
  border: 1px solid rgba(138, 114, 72, .35);
}
.reels-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}
.film-reel {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid #c9a769;
  background: radial-gradient(circle, #c9a769 0 5px, #353027 6px 100%);
  display: grid;
  place-items: center;
}
.film-reel i {
  position: absolute;
  width: 2px;
  height: 36px;
  background: #c9a769;
}
.film-reel i:nth-child(2) { transform: rotate(60deg); }
.film-reel i:nth-child(3) { transform: rotate(120deg); }
.projector-telemetry {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font: 600 11px/1.2 ui-monospace, SFMono-Regular, monospace;
  color: #e8cfa0;
  letter-spacing: .08em;
}
.gate-aperture {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #171511;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .65);
  filter: brightness(var(--lamp-bright, .82)) sepia(.1);
  transition: filter .12s linear;
}
.gate-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gate-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 38px rgba(15, 12, 8, .72);
}
.gate-dust-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: radial-gradient(#fff8e6 .7px, transparent .7px);
  background-size: 5px 5px;
}
.crank-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 12px;
  border-radius: 16px;
  background: #f4ecda;
  border: 1px solid rgba(138, 114, 72, .26);
  text-align: center;
}
.crank-wheel {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffaf0 0%, #e4d4b2 72%, #cbb489 100%);
  border: 2px solid #a98952;
  box-shadow:
    0 10px 24px rgba(68, 54, 30, .18),
    inset 0 2px 6px rgba(255, 255, 255, .8);
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.crank-wheel:active {
  cursor: grabbing;
}
.crank-ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(98, 82, 50, .42);
  pointer-events: none;
}
.crank-arm {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.crank-arm::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 6px;
  margin-top: -3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b6e3b, #d5b271);
  transform-origin: left center;
}
.crank-knob {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #75844e, #45502b);
  border: 2px solid #fff6df;
  box-shadow: 0 4px 10px rgba(42, 34, 18, .32);
}
.crank-center {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #535d35;
  color: #fffdf7;
  display: grid;
  place-items: center;
  font: 600 10px/1 ui-monospace, monospace;
}
.crank-tip {
  font-size: 11px;
  line-height: 1.45;
  color: #6c6a58;
}

/* --- 06 此刻: Ambient Gold-Foil Ticket Stamps & Lifecycle Constellation --- */
.holo-ticket {
  width: min(100%, 650px);
}
.holo-sheen {
  animation: holoAmbientSweep 6s ease-in-out infinite alternate;
}
.holo-foil-border {
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  border: 1px solid rgba(182, 158, 96, .36);
  pointer-events: none;
}
.ticket-wish {
  margin: 12px 0 10px;
  font-family: "Songti SC", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #535d35;
}
.ticket-stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ticket-ch-chip {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(139, 150, 97, .14);
  color: #7a8060;
  border: 1px dashed rgba(139, 150, 97, .35);
}
.ticket-ch-chip.is-lit {
  background: #535d35;
  color: #fffdf7;
  border-style: solid;
  border-color: #535d35;
}
.ticket-right strong {
  font-size: 13px;
  color: #3d4528;
}
.wish-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
@keyframes holoAmbientSweep {
  0% { opacity: .65; filter: hue-rotate(-8deg); }
  100% { opacity: 1; filter: hue-rotate(12deg); }
}

/* Lifecycle Constellation Stage */
.constellation-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fcf8ef;
  border: 1px solid rgba(83, 93, 53, .16);
}
.constellation-map-wrap {
  width: 100%;
  padding: 10px 12px 4px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 45%, #fffdf8 0%, #f2ead5 100%);
  border: 1px solid rgba(98, 104, 62, .18);
  overflow-x: auto;
}
.constellation-svg {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
}
.star-node {
  cursor: pointer;
  outline: none;
}
.star-halo {
  fill: rgba(200, 131, 83, .14);
  stroke: rgba(144, 157, 102, .45);
  stroke-width: 1.2;
  transition: r .25s ease, fill .25s ease, stroke .25s ease;
}
.star-core {
  fill: #e8dec5;
  stroke: #7c8459;
  stroke-width: 2;
  transition: fill .25s ease, stroke .25s ease;
}
.star-node.is-lit .star-core {
  fill: #7c9857;
  stroke: #4c6131;
}
.star-node.is-selected .star-halo {
  fill: rgba(200, 131, 83, .28);
  stroke: #c88353;
  stroke-width: 2;
}
.star-node.is-selected .star-core {
  fill: #535d35;
  stroke: #c88353;
}
.star-num {
  font: 700 10px/1 ui-monospace, monospace;
  fill: #3d4528;
  pointer-events: none;
}
.star-node.is-lit .star-num,
.star-node.is-selected .star-num {
  fill: #fffdf8;
}
.star-label {
  font: 600 13px/1 "PingFang SC", sans-serif;
  fill: #4c5532;
  pointer-events: none;
}

.dossier-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: #fffdf8;
  border: 1px solid rgba(98, 104, 62, .2);
  box-shadow: 0 10px 28px rgba(68, 60, 40, .08);
}
.dossier-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #f4ecda;
  padding: 8px;
  display: grid;
  place-items: center;
}
.dossier-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dossier-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dossier-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: #edf2df;
  color: #4b5830;
  font-size: 11px;
  font-weight: 600;
}
.dossier-body h4 {
  margin: 6px 0;
  font-size: 18px;
  color: #3d4528;
}
.dossier-medium {
  margin: 0 0 6px;
  font-size: 12px;
  color: #7c825b;
  font-weight: 600;
}
.dossier-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #5f5b4e;
}

@media (max-width: 680px) {
  .turntable-deck,
  .projector-rig,
  .dossier-card {
    grid-template-columns: 1fr;
  }
  .platter-cabinet {
    max-width: 250px;
    margin: 0 auto;
    width: 100%;
  }
  .contact-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================================
   WIDESCREEN DESKTOP EXHIBITION + FULL-BLEED MOBILE DRAWER RESPONSIVE SYSTEM
   Solves cramped modal space ("施展不开") on Desktop & optimizes Phone UX
   ============================================================================ */

/* 1. Outer Chapter Stage: Bigger Diorama Canvas on Desktop */
.experience {
  padding: 10px 3.5% 0;
}
.experience-layout {
  grid-template-columns: minmax(270px, 28%) minmax(0, 1fr);
  gap: 28px;
}
.scene-canvas {
  width: min(100%, calc((100svh - 210px) * 4 / 3));
}

/* 2. Widescreen Exhibition Dialog Shell (Desktop) */
.archive-dialog {
  width: min(1140px, calc(100vw - 44px));
  max-width: 1140px;
  max-height: 92svh;
  border-radius: 26px;
}
.dialog-header {
  padding: 16px 28px;
}
.dialog-body {
  padding: 20px 28px 28px;
}

/* 3. Spacious Desktop Proportions for All 12 Installations */
.vibe-stage,
.ruler-table,
.tactile-purr-wrap,
.vinyl-turntable-stage,
.lantern-theater,
.film-table,
.projector-stage,
.constellation-stage {
  width: 100%;
  box-sizing: border-box;
}

/* 01 初见 Desktop */
.carrier-latch-bar {
  width: min(100%, 540px);
}
.sx70-develop-card {
  width: min(100%, 420px);
}
.polaroid-board {
  padding: 34px 28px 44px;
}
.polaroid-row {
  gap: 28px 34px;
}
.real-polaroid {
  width: 242px;
  padding: 15px 15px 52px 15px;
}
.held-polaroid {
  width: min(86vw, 400px);
}

/* 02 幼年 Desktop */
.ruler-table,
.tactile-purr-wrap {
  padding: 22px 28px 20px;
}
.ruler-grid,
.ruler-controls {
  width: min(100%, 920px);
}
.ruler-grid {
  grid-template-columns: 52px 1fr 230px;
  gap: 20px;
  padding: 20px 22px;
}
.specimen-stage,
.specimen-figure,
.specimen-photo-box,
.paw-1to1-stage {
  min-height: 350px;
  height: 350px;
}
.tactile-purr-wrap .film-topbar,
.tactile-purr-frame,
.purr-footer {
  width: min(100%, 820px) !important;
}
.tactile-purr-frame {
  aspect-ratio: 16 / 10;
}

/* 03 日常 Desktop */
.mail-stage .film-topbar,
.envelope-3d {
  width: min(100%, 920px) !important;
}
.envelope-3d {
  min-height: 370px;
  padding: 30px 32px;
}
.postcard-sheet {
  grid-template-columns: 290px 1fr;
  gap: 28px;
}
.vinyl-turntable-stage {
  padding: 24px 28px;
}
.turntable-deck {
  grid-template-columns: 340px 1fr;
  gap: 34px;
}
.vinyl-eq-canvas {
  max-width: 100%;
  height: 64px;
}

/* 04 远行 Desktop */
.night-stage {
  padding: 22px 28px 24px;
}
.night-stage .comparison-canvas {
  height: min(52svh, 460px);
}
.lantern-theater {
  padding: 22px 28px;
}
.lantern-viewport {
  height: 380px;
  perspective: 1200px;
}
.lantern-drum {
  width: 280px;
  height: 260px;
}
.lantern-panel {
  transform: rotateY(var(--panel-deg, 0deg)) translateZ(225px);
  padding: 12px 12px 10px;
}

/* 05 陪伴 Desktop */
.film-table {
  padding: 22px 28px 20px;
}
.viewfinder-wrap,
.contact-strip,
.film-controls {
  width: min(100%, 820px);
}
.vf-frame {
  aspect-ratio: 16 / 10;
}
.projector-stage {
  padding: 22px 28px;
}
.projector-rig {
  grid-template-columns: 1fr 240px;
  gap: 24px;
}
.crank-wheel {
  width: 156px;
  height: 156px;
}

/* 06 此刻 Desktop */
.ticket-stage .film-topbar,
.holo-ticket {
  width: min(100%, 820px) !important;
}
.holo-ticket {
  padding: 34px 36px;
  gap: 26px;
}
.ticket-left h3 {
  font-size: 34px;
}
.ticket-right img {
  width: 168px;
  height: 168px;
}
.constellation-stage {
  padding: 22px 28px;
}
.constellation-svg {
  min-width: 0;
  width: 100%;
}
.dossier-card {
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 20px;
}

/* ============================================================================
   MOBILE & TABLET OPTIMIZATION (<= 720px): Full-Bleed Drawer + Ergonomic Touch
   ============================================================================ */
@media (max-width: 720px) {
  .archive-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 94svh;
    max-height: 94svh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
  .dialog-header {
    padding: 14px 16px;
  }
  .dialog-header h2 {
    font-size: 16px;
    line-height: 1.3;
  }
  .dialog-body {
    padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .small-button {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
  }
  .film-topbar {
    font-size: 10px;
    letter-spacing: .1em;
    gap: 8px;
  }

  /* Reduce nested box padding on mobile so content uses full screen width */
  .ruler-table,
  .tactile-purr-wrap,
  .vinyl-turntable-stage,
  .lantern-theater,
  .film-table,
  .projector-stage,
  .constellation-stage,
  .night-stage {
    padding: 14px 12px;
    border-radius: 16px;
  }

  /* 01 Mobile: Horizontal swipeable full-size Polaroids + crisp SX-70 */
  .carrier-latch-bar {
    width: 100%;
  }
  .latch-hint {
    font-size: 11px;
  }
  .sx70-develop-card {
    width: 100%;
    padding: 12px 12px 16px;
  }
  .polaroid-board {
    padding: 22px 0 26px;
    border-width: 6px;
  }
  .polaroid-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 18px;
    padding: 14px 20px 18px;
  }
  .real-polaroid {
    flex: 0 0 215px;
    width: 215px;
    padding: 12px 12px 44px 12px;
    scroll-snap-align: center;
  }
  .held-polaroid {
    width: min(88vw, 330px);
    padding: 14px 14px 52px 14px;
  }

  /* 02 Mobile: Ruler & 1:1 Pawprint + 4:3 Purr Frame */
  .ruler-grid {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 12px 10px;
  }
  .specimen-stage,
  .specimen-figure,
  .specimen-photo-box,
  .paw-1to1-stage {
    min-height: 250px;
    height: 250px;
  }
  .paw-1to1-stage {
    gap: 8px;
    padding: 8px 4px;
  }
  .paw-mm-col strong {
    font-size: 11px;
  }
  .paw-mm-col small {
    font-size: 10px;
  }
  .tactile-purr-frame {
    aspect-ratio: 3 / 4;
    max-width: 280px;
    margin: 0 auto;
  }
  .purr-telemetry-bar {
    font-size: 9.5px;
    top: 8px;
    left: 10px;
    right: 10px;
  }

  /* 03 Mobile: Stacked Postcard + Proportional Turntable */
  .envelope-3d {
    min-height: 280px;
    padding: 16px 14px;
  }
  .postcard-sheet {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .postcard-left img {
    aspect-ratio: 3 / 4;
    max-width: 268px;
    margin: 0 auto;
    display: block;
    object-fit: cover;
    object-position: center 14%;
  }
  .turntable-deck {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .platter-cabinet {
    width: 244px;
    max-width: 244px;
    padding: 18px;
    margin: 0 auto;
  }
  .tonearm-assembly {
    transform-origin: top right;
    top: 12px;
    right: 12px;
    transform: scale(.78) rotate(0deg);
  }
  .tonearm-assembly.is-engaged {
    transform: scale(.78) rotate(24deg);
  }

  /* 04 Mobile: Generous Comparison + Perfectly Fitted 360° Lantern */
  .night-stage .comparison-canvas {
    height: min(44svh, 300px);
  }
  .lamp-cord {
    right: 14px;
  }
  .night-intro {
    padding-right: 64px;
    font-size: 13px;
    margin-bottom: 14px;
  }
  .lantern-viewport {
    height: 268px;
    perspective: 780px;
  }
  .lantern-drum {
    width: 186px;
    height: 186px;
  }
  .lantern-panel {
    transform: rotateY(var(--panel-deg, 0deg)) translateZ(136px);
    padding: 8px 8px 6px;
  }

  /* 05 Mobile: Full-Width 35mm Viewfinder + Ergonomic 8mm Crank */
  .viewfinder-wrap {
    padding: 12px 12px 14px;
  }
  .vf-frame {
    aspect-ratio: 3 / 4;
    max-width: 290px;
    margin: 0 auto;
  }
  .vf-meta {
    font-size: 10px;
  }
  .contact-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 6px;
  }
  .contact-code {
    font-size: 7px;
  }
  .projector-rig {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .crank-panel {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    padding: 14px 12px;
  }
  .crank-wheel {
    width: 124px;
    height: 124px;
  }

  /* 06 Mobile: Preserve Sleek Desktop Horizontal Exhibition Pass Proportion */
  .holo-ticket {
    grid-template-columns: 1.48fr 0.64fr;
    padding: 14px 12px;
    gap: 10px;
    border-radius: 16px;
    max-width: 100%;
  }
  .ticket-eyebrow {
    font-size: 7.5px;
    letter-spacing: .1em;
  }
  .ticket-left h3 {
    font-size: 17px;
    margin: 4px 0 2px;
  }
  .ticket-sub {
    font-size: 9.5px;
    margin-bottom: 8px;
  }
  .ticket-meta {
    gap: 3px;
    font-size: 9.5px;
  }
  .ticket-meta dt {
    min-width: 44px;
  }
  .ticket-wish {
    font-size: 9.5px;
    line-height: 1.45;
    margin: 7px 0 8px;
  }
  .ticket-stamp-row {
    gap: 4px;
  }
  .ticket-ch-chip {
    font-size: 8px;
    padding: 2px 5px;
  }
  .ticket-right {
    border-left: 1px dashed rgba(98, 104, 62, .28);
    border-top: 0;
    padding-left: 10px;
    padding-top: 0;
    gap: 4px;
  }
  .ticket-right img {
    width: 74px;
    height: 74px;
  }
  .ticket-right strong {
    font-size: 10px;
  }
  .ticket-right small {
    font-size: 8.5px;
  }
  .ticket-tools {
    width: 100%;
  }
  .ticket-tools input {
    width: 100%;
    text-align: center;
  }
  .dossier-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .dossier-thumb {
    max-height: 170px;
  }
}


/* ============================================================================
   ZERO-CROP PORTRAIT / LANDSCAPE ASPECT-RATIO LOCKS & WAVEFORM POLISH
   Guarantees YanYan's face is NEVER cropped by mismatched wide containers
   ============================================================================ */

/* 01: Keep portrait arrival face centered high inside square SX-70 frame */
.scratch-img,
.scratch-video {
  object-position: center 30%;
}

/* 02 Panel 1: Soda bottle portrait photo shown 100% uncropped on archival mat */
.specimen-photo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f3ecdb;
  padding: 10px;
}
.specimen-photo-box img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(58, 48, 32, .12);
}

/* 02 Panel 2: Match 3:4 upright portrait photo (zero head/face cropping!) */
.tactile-purr-wrap .film-topbar,
.purr-footer {
  width: min(100%, 560px) !important;
}
.tactile-purr-frame {
  width: min(100%, 440px) !important;
  aspect-ratio: 3 / 4 !important;
  max-height: 60svh;
  margin: 0 auto;
}
.purr-bg-photo {
  object-fit: cover;
  object-position: center center;
}

/* 03 Panel 1: Authentic pre-shaped acoustic waveform bars at rest & play */
.wave-bars {
  height: 30px;
  gap: 3.5px;
}
.wave-bars i {
  width: 3.5px;
  height: var(--h, 12px);
  border-radius: 999px;
  background: rgba(124, 146, 82, .72);
  transition: height .2s ease, background .2s ease;
}
.wave-bars.is-playing i {
  background: #535d35;
  animation: waveBounce .55s var(--d, 0s) ease-in-out infinite alternate;
}

/* 04 Panel 1: Match 3:4 portrait Before/Now photos 1:1 (zero paw-only/eye-only crop!) */
.night-stage .comparison-canvas {
  width: min(100%, 450px);
  aspect-ratio: 3 / 4;
  height: auto;
  max-height: 58svh;
  margin: 0 auto;
  background: #23201b;
}
.compare-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* 05 Panel 1 & 2: Darkroom matte framing so portrait & landscape media never lose heads */
.viewfinder-wrap,
.contact-strip,
.film-controls {
  width: min(100%, 720px);
}
.vf-frame {
  aspect-ratio: 4 / 3;
  max-height: 46svh;
  background: #1f1c17;
}
.vf-media {
  object-fit: contain;
  background: #1f1c17;
}
.contact-cell img {
  object-fit: cover;
  object-position: center 28%;
}
.gate-aperture {
  aspect-ratio: 4 / 3;
  max-height: 50svh;
  background: #14120f;
}
.gate-video {
  object-fit: contain;
  background: #14120f;
}

@media (max-width: 720px) {
  .tactile-purr-frame {
    width: min(100%, 340px) !important;
    max-height: 56svh;
  }
  .night-stage .comparison-canvas {
    width: min(100%, 340px);
    height: auto;
    max-height: 54svh;
  }
}


/* ============================================================================
   SAFARI 3D LANTERN FIX + CHAPTER 03 SILENT OPTICAL LOUPE LIGHT TABLE
   ============================================================================ */

/* Fix Safari preserve-3d half-image gap & mirrored backside text in 04 Lantern */
.lantern-panel {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.lantern-media-wrap {
  position: relative;
  display: block;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #231f1a;
}
.lantern-media-wrap img,
.lantern-media-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

/* 03 Panel 2: Silent Archival Light Table & 2.2x Optical Loupe Magnifier */
.lightbox-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 26px;
  border-radius: 20px;
  background: #fcf8ef;
  border: 1px solid rgba(83, 93, 53, .16);
  transition: background .4s ease;
}
.lightbox-stage.is-warm {
  background: linear-gradient(180deg, #fdf6e6 0%, #f8edd6 100%);
}
.lightbox-stage.is-day {
  background: linear-gradient(180deg, #f9faf6 0%, #f1f3eb 100%);
}
.lightbox-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: center;
}
.lightbox-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 56svh;
  border-radius: 14px;
  overflow: hidden;
  border: 6px solid #fffdf8;
  box-shadow:
    0 0 0 1px rgba(83, 93, 53, .22),
    0 16px 36px rgba(58, 48, 30, .16);
  background: #221f1a;
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
}
.lightbox-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.loupe-lens {
  position: absolute;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 3px solid #fffdf8;
  box-shadow:
    0 0 0 2px rgba(83, 93, 53, .45),
    0 14px 32px rgba(24, 20, 12, .42),
    inset 0 2px 10px rgba(255, 255, 255, .45);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 4;
}
.loupe-lens.is-active {
  opacity: 1;
  transform: scale(1);
}
.loupe-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 30, 22, .62);
  color: #fffdf6;
  font-size: 11px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.lightbox-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lightbox-sidebar h4 {
  margin: 0;
  font-size: 22px;
  color: #3d4528;
}
.lightbox-sidebar p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #626052;
}
.lightbox-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.slide-thumb {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 10px;
  border: 1.5px solid rgba(98, 104, 62, .2);
  background: #fffdf8;
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.slide-thumb:hover,
.slide-thumb.is-selected {
  opacity: 1;
  border-color: #535d35;
  transform: translateY(-2px);
}
.slide-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.slide-thumb span {
  font: 600 10px/1 ui-monospace, monospace;
  color: #6c724c;
  text-align: center;
}
@media (max-width: 720px) {
  .lightbox-stage {
    padding: 14px 12px;
  }
  .lightbox-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lightbox-viewport {
    max-width: 320px;
    margin: 0 auto;
  }
}
