:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  --scene-height: 100vh;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #796039; outline-offset: 5px; }
:where(h1, h2, h3, p, figure) { margin: 0; }
.shell { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 8px; left: 8px; transform: translateY(-200%); padding: .75rem 1rem; background: white; border-radius: 8px; }
.skip-link:focus { transform: none; }
.topbar { position: absolute; inset: 0 0 auto; z-index: 3; color: #fff8eb; background: linear-gradient(#17120bd9, #17120b35); }
.nav, .wordmark { display: flex; align-items: center; }
.nav { min-height: 62px; justify-content: space-between; gap: 24px; }
.wordmark { gap: 9px; font: italic 700 1.25rem/1 Georgia, serif; letter-spacing: -.025em; white-space: nowrap; }
.wordmark img { border-radius: 4px; }
.photo-map {
  --accent: #eed9ac;
  background: radial-gradient(ellipse at 72% 54%, #3b4333, #1b211b 68%);
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding-block: clamp(40px, 7vh, 72px);
}
.map-screen {
  justify-self: center;
  width: min(100%, 640px);
}
.map-display {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid #cfbb8c66;
  border-radius: 5px;
  background: #171d23;
  box-shadow: 0 20px 54px #0008;
}
.map-display > img, .map-display iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-display > img { object-fit: contain; }
.map-display iframe { visibility: hidden; border: 0; pointer-events: none; }
.map-display[data-live] iframe { visibility: visible; }
.map-screen figcaption { margin-top: 12px; color: #e6d0a9; font-size: .83rem; }
.download { display: grid; place-items: center; background: #e8d9bd; }
.download-inner { display: grid; justify-items: center; text-align: center; padding-block: 68px 74px; }
.download-icon { margin-bottom: 17px; border-radius: 17px; box-shadow: 0 8px 20px rgb(58 44 28 / 13%); }
.download h2 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 410px); margin-top: 27px; }
.store-slot { display: grid; align-content: center; min-height: 71px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.store-slot strong { font-family: var(--title-face); font-size: .98rem; font-weight: 700; }
.store-slot span { margin-top: 3px; color: var(--muted); font-size: .8rem; }
a.store-slot { border-color: var(--ink); background: var(--ink); color: white; }
a.store-slot span { color: #e7d5b8; }
a.store-slot:hover { background: #393832; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 30px; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 19px; color: var(--muted); font-size: .85rem; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
@supports (height: 100dvh) {
  :root { --scene-height: 100dvh; }
}
.viewport-panel { min-height: var(--scene-height); }
.nav-platforms { color: #fff3df; font: .76rem var(--readout-face); white-space: nowrap; }
:where(.intro h1, .film-copy h2, .story-copy h2, .story-copy h3, .download h2) {
  font-family: var(--title-face); font-weight: 700; letter-spacing: -.045em; line-height: 1.12; word-break: keep-all;
}
.intro { position: relative; isolation: isolate; display: grid; align-items: end; overflow: clip; background: #231d12; color: #fff8eb; }
.intro-image, .intro::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-image { z-index: -2; object-fit: cover; object-position: center 52%; }
.intro::after { z-index: -1; content: ''; background: linear-gradient(180deg, #1b120a15 25%, #1b120a7d 59%, #150e08f5 100%); }
.intro-copy { padding-block: 92px clamp(42px, 9vh, 104px); }
.intro h1 { font-size: clamp(3.3rem, 8.5vw, 8.1rem); color: #fff3dc; }
.intro p { max-width: 40ch; margin-top: 18px; font-size: clamp(1rem, 2.25vw, 1.22rem); line-height: 1.65; color: #f0dfc8; word-break: keep-all; }
.has-motion .story-scene { --travel: clamp(300px, 54vh, 660px); min-height: calc(var(--scene-height) + var(--travel)); }
.has-motion .photo-map { --travel: clamp(360px, 68vh, 720px); }
.has-motion .story-pin { position: sticky; top: 0; }
.film-scene { background: #1e1d1a; color: #fdf3e0; }
.film-scene .story-pin { position: relative; display: grid; align-content: end; isolation: isolate; overflow: clip; }
.has-motion .film-scene .story-pin { position: sticky; }
.film-copy { z-index: 1; padding-block: 30px clamp(88px, 12vh, 146px); }
.film-copy h2 { font-size: clamp(2.8rem, 7.3vw, 6.8rem); text-shadow: 0 2px 22px #0009; }
.film-frame { position: absolute; z-index: 0; inset: 0; overflow: hidden; background: #32312d; }
.film-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.film-frame::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 34%, #211b1020 55%, #1d170dee 100%); }
.film-light { visibility: hidden; }
.film-scene[data-ready] .film-light { visibility: visible; }
.film-scene[data-ready] .film-full { opacity: var(--film-progress, 0); will-change: opacity; }
.film-frame figcaption { position: absolute; z-index: 2; inset: auto 0 clamp(28px, 5vh, 54px); display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff8e9; font-weight: 650; font-size: .9rem; }
.film-meter { display: none; width: min(180px, 28%); height: 2px; background: #fff6; }
.film-scene[data-ready] .film-meter { display: block; }
.film-meter span { display: block; height: 100%; background: #fff3d9; transform: scaleX(var(--film-progress, 0)); transform-origin: left; }
.film-strip { display: grid; grid-template-columns: 1fr 1fr; background: #241f18; }
.film-strip figure { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.film-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-strip figcaption { position: absolute; inset: auto 0 0; padding: 38px clamp(17px, 4vw, 54px) clamp(17px, 4vw, 40px); background: linear-gradient(transparent, #1c160ee8); color: #fff6e5; font-weight: 650; font-size: clamp(.85rem, 2vw, 1.14rem); }
.cleanup { color: #f8f0e0; }
.sort-scene { --accent: #e1edbd; --glow: #3c492b; --base: #1a2114; --dock-x: 81%; --dock-y: 59%; background: var(--base); }
.sort-remove { --accent: #ffd1ba; --glow: #502e23; --base: #2a1b16; --dock-x: 19%; }
.sort-album { --accent: #f6dfad; --glow: #554329; --base: #241c12; }
.sort-scene .story-pin { display: grid; overflow: clip; grid-template-columns: minmax(0, .76fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 4vw, 64px); padding: clamp(22px, 5vh, 60px) clamp(24px, 7vw, 115px); background: radial-gradient(ellipse at 72% 51%, var(--glow), var(--base) 63%); }
.story-copy h2, .story-copy h3 { font-size: clamp(2.8rem, 6.3vw, 6rem); color: var(--accent); }
.story-copy p { max-width: 29ch; margin-top: 14px; color: #eee6d6; font-size: clamp(1rem, 1.8vw, 1.24rem); line-height: 1.62; word-break: keep-all; }
.story-copy .plan-note { margin-top: 14px; color: #e6d0a9; font-size: .83rem; }
.sort-stage { position: relative; isolation: isolate; height: clamp(220px, calc(var(--scene-height) * .83), 850px); }
.sort-photo, .sort-origin, .sort-dock, .press-ring { position: absolute; translate: -50% -50%; }
.sort-photo, .sort-origin { left: 50%; top: 54%; width: min(49%, 460px); height: 68%; border-radius: 4px; }
.sort-origin { border: 1px dashed #e8d7b858; }
.sort-photo { z-index: 2; object-fit: cover; object-position: 50% 63%; border: 6px solid var(--paper); box-shadow: 0 12px 26px #0007; }
.sort-dock { left: var(--dock-x); top: var(--dock-y); width: 31%; height: 46%; border: 1px solid #fff6; border-radius: 4px; color: var(--accent); background: rgb(13 12 10 / 42%); }
.dock-label { position: absolute; z-index: 3; top: calc(var(--dock-y) - 23% - 1.8rem); left: var(--dock-x); translate: -50% 0; color: var(--accent); white-space: nowrap; font-weight: 650; font-size: clamp(.85rem, 1.65vw, 1.22rem); }
.sort-dock::after { position: absolute; inset: -1px; content: ""; border: 1px solid var(--accent); border-radius: inherit; box-shadow: 0 0 28px var(--glow); opacity: var(--arrival, 0); pointer-events: none; }
.press-ring { display: none; z-index: 3; left: 50%; top: 54%; width: 48px; aspect-ratio: 1; border: 2px solid #ffe4bb; border-radius: 50%; background: #ffe2b54d; opacity: 0; }
.sort-album .press-ring { display: block; }
:root:not(.has-motion) .sort-origin { visibility: hidden; }
:root:not(.has-motion) .sort-photo { left: var(--dock-x); top: var(--dock-y); width: 25%; height: 37%; }
.sort-album .sort-stage {
  container-type: size;
  --wheel-size: min(94cqw, 94cqh, 420px);
  --dock-x: calc(50% + var(--wheel-size) * .2581);
  --dock-y: calc(54% - var(--wheel-size) * .2581);
}
.sort-album .sort-dock {
  width: calc(var(--wheel-size) * .265);
  height: calc(var(--wheel-size) * .175);
  visibility: hidden;
}
.sort-album .sort-origin { visibility: hidden; }
.sort-album .sort-photo { width: min(56%, 410px); height: 65%; }
.album-wheel {
  position: absolute;
  z-index: 4;
  top: 54%;
  left: 50%;
  translate: -50% -50%;
  width: var(--wheel-size);
  aspect-ratio: 1;
  color: var(--accent);
  pointer-events: none;
}
.has-motion .album-wheel { opacity: var(--wheel-open, 0); transform: scale(var(--wheel-scale, .95)); }
.wheel-track {
  position: absolute;
  inset: 13.5%;
  border: 1px solid #f6dfad44;
  border-radius: 50%;
}
.wheel-slot, .wheel-hint, .wheel-release, .wheel-success {
  position: absolute;
  translate: -50% -50%;
  white-space: nowrap;
}
.wheel-slot {
  display: grid;
  place-items: center;
  left: calc(50% + var(--x) * 36.5%);
  top: calc(50% + var(--y) * 36.5%);
  width: 26.5%;
  height: 17.5%;
  border: 1px solid #f6dfad55;
  border-radius: 6px;
  background: #2c241a;
  font-size: clamp(.72rem, 5cqh, .96rem);
  font-weight: 650;
}
.wheel-empty { color: #dcccb6; border-style: dashed; }
.wheel-target {
  background: color-mix(in srgb, #2c241a, var(--accent) calc(var(--wheel-focus, 1) * 100%));
  color: color-mix(in srgb, var(--accent), #241c12 calc(var(--wheel-focus, 1) * 100%));
  opacity: calc(1 - var(--wheel-done, 0));
}
.wheel-hint, .wheel-release, .wheel-success {
  top: 50%;
  left: 50%;
  color: #241c12;
  background: var(--accent);
  border-radius: 4px;
  padding: .42em .66em;
  font-size: clamp(.68rem, 4.6cqh, .94rem);
  font-weight: 700;
}
.wheel-hint { opacity: calc(1 - var(--wheel-focus, 0)); }
.wheel-release { opacity: calc(var(--wheel-focus, 0) * (1 - var(--wheel-done, 0))); }
.wheel-success { opacity: var(--wheel-done, 0); }
:root:not(.has-motion) .sort-album .sort-photo { opacity: .35; left: 50%; top: 54%; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 56px); }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 32px); }
  .map-layout { grid-template-columns: 1fr; align-content: center; padding-block: clamp(24px, 4vh, 40px); }
  .nav { gap: 12px; }
  .intro h1 { font-size: clamp(2.9rem, 12vw, 4.65rem); }
  .intro-image { object-position: 43% center; }
  .film-frame img { object-position: 47% center; }
  .film-strip { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .sort-scene .story-pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: stretch; gap: 14px; padding: clamp(28px, 7vh, 70px) 16px 22px; background: radial-gradient(ellipse at 53% 60%, var(--glow), var(--base) 72%); }
  .story-copy h2, .story-copy h3 { font-size: clamp(2.6rem, 10vw, 4.5rem); }
  .story-copy p { margin-top: 8px; max-width: 32ch; }
  .story-copy .plan-note { margin-top: 7px; }
  .sort-stage { height: auto; min-height: 210px; }
  .sort-photo { border-width: 4px; }
  .download-inner { padding-block: 48px 56px; }
}
@media (max-height: 460px) {
  .intro-copy { padding-block: 85px 26px; }
  .intro h1 { font-size: clamp(2.5rem, 7vw, 4.1rem); }
  .film-copy { padding-bottom: 76px; }
  .film-copy h2, .story-copy h2, .story-copy h3 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
  .sort-scene .story-pin { padding-block: 20px; }
  .sort-stage { min-height: 185px; }
}
