/*
 * meiga-no-mori.css - 名画の森 統合ビルド
 */

* { box-sizing: border-box; }
html {
  scroll-behavior: auto;
  scroll-padding-top: 85px;
  overflow-x: clip;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
body {
  margin: 0;
  color: #233e32;
  background: #edeee3;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button { background: none; border: 0; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #bba978;
  outline-offset: 6px;
}
h1, h2, h3, p { margin: 0; }
h2 {
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.6;
  letter-spacing: .07em;
}
p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 2.3;
  letter-spacing: .035em;
}

/* -- HEADER -- */
header {
  position: fixed; left: 0; top: 0; width: 100%; z-index: 40;
  padding: 14px 5%;
  display: flex; align-items: center; justify-content: space-between;
  color: #233e32;
  background: #edeee3f2;
  border-bottom: 1px solid #c5b07a55;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(-120%);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), background .35s, border-color .35s, color .35s;
  pointer-events: none;
}
body.is-hero-top header,
body:not(.is-heroing) header {
  transform: translateY(0);
  pointer-events: auto;
}
body.is-hero-top header {
  background: transparent;
  border-bottom: 1px solid #eff4d928;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #f0f0de;
}
body.is-hero-top .brand img {
  filter: brightness(0) invert(1);
}
body.is-hero-top .desktop-link { color: #f0f0de; }
body.is-hero-top .auth-link {
  background: #f6efd2;
  color: #193d30;
  border-color: #f6efd2;
  box-shadow: 0 10px 24px #07140f66;
}
body.is-hero-top .auth-link.is-join {
  border-color: #e8d4a0;
  box-shadow: 0 0 0 1px #f6efd288, 0 0 18px #f4e2a899;
}
body.is-hero-top .auth-link:hover { background: #fff8e8; }
.brand {
  display: flex;
  align-items: center;
  line-height: 0;
}
.brand img {
  display: block;
  height: 48px;
  width: auto;
}
.desktop-link { font: 12px var(--sans); margin-right: 22px; letter-spacing: .06em; }
.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 14px/1 var(--sans);
  letter-spacing: .16em;
  margin-right: 16px;
  padding: 13px 22px;
  border: 1px solid #1a3329;
  background: #193d30;
  color: #f6efd2;
  box-shadow: 0 8px 20px #16332833;
}
.auth-link:hover { background: #244a38; }
.auth-link.is-join {
  position: relative;
  border-color: #e8d4a0;
  box-shadow: 0 0 0 1px #c5b07a55, 0 0 16px #e8d4a066;
}
.auth-link.is-join::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  background: linear-gradient(110deg, transparent 34%, #fff8dc 50%, transparent 66%);
  background-size: 220% 100%;
  animation: auth-gleam 2.8s ease-in-out infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@keyframes auth-gleam {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
.reduced .auth-link.is-join,
.reduced .auth-link.is-join::after { animation: none; }
header nav { display: flex; align-items: center; }
#menu-button { width: 48px; height: 48px; display: grid; align-content: center; gap: 7px; padding: 10px; }
#menu-button i { display: block; background: currentColor; height: 1px; width: 26px; }
.skip { position: fixed; z-index: 100; top: -100px; padding: 12px; background: #edf0da; }
.skip:focus { top: 10px; }

/* -- HERO / SCROLL-SCRUBBED FILM -- */
.hero-stage {
  height: 450vh;
  position: relative;
  background: #1a3329;
  overflow: visible;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  isolation: isolate;
  background: #1a3329;
}
#hero-canvas,
#walk-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  z-index: 8;
  background:
    radial-gradient(ellipse at 30% 36%, #07140f66 0%, transparent 48%),
    radial-gradient(ellipse at 50% 42%, transparent 46%, #07180f55 100%),
    linear-gradient(180deg, #0b1c1633 0%, transparent 28%, transparent 62%, #07140fcc 100%);
}
.reduced .hero-stage { height: 100svh; }

/* -- SCENE COPIES -- */
.scene-copy {
  position: absolute; left: 9%; top: 26%; max-width: 650px;
  padding: 0;
  opacity: 0; transform: translateY(16px);
  color: #fffdf6;
  pointer-events: none;
  transition: opacity .55s, transform .6s;
  background: none;
  border: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 1px 1px #04110ccc)
    drop-shadow(0 2px 10px #07140fe0)
    drop-shadow(0 0 22px #07140fcc);
  text-shadow:
    0 1px 1px #000c,
    0 0 12px #0008;
}
.scene-copy.active { opacity: 1; transform: none; }
.scene-copy .eyebrow { color: #f6eec4; margin-bottom: 18px; }
.scene-copy h1 {
  font-weight: 400;
  font-size: clamp(52px, 7.6vw, 108px);
  line-height: 1.12; letter-spacing: .12em;
  margin-left: -.045em; margin-bottom: 18px;
  color: #fffef8;
}
.scene-copy h3 {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.8; letter-spacing: .1em; font-weight: 400;
  color: #fffdf6;
}
.scene-copy h2 {
  font-size: clamp(32px, 4.6vw, 60px);
  color: #fffef8;
}
.scene-copy p { margin-top: 16px; font-size: 14px; line-height: 2.1; color: #fff9ea; }
.scene-copy:not(:first-child) { top: 30%; }

/* -- EYEBROW -- */
.eyebrow {
  display: block;
  font: 10px/1.5 var(--sans);
  letter-spacing: .23em; color: #667653; margin-bottom: 27px;
}

/* -- HERO SIDE / BOTTOM -- */
.hero-side {
  position: absolute; right: 35px; top: 37%;
  writing-mode: vertical-rl;
  font: 9px var(--sans); letter-spacing: .3em; color: #e0e6cf;
}
.stage-bottom {
  position: absolute; left: 5%; right: 5%; bottom: 18px;
  display: flex; align-items: center; justify-content: space-between;
  color: #eef0d9;
}
body.is-member .stage-bottom { bottom: 18px; }
.chapter-dots { display: flex; gap: 10px; }
.chapter-dots button {
  font: 10px var(--sans); width: 36px; min-height: 44px;
  opacity: .5; border-bottom: 1px solid transparent;
}
.chapter-dots button[aria-current=true] { opacity: 1; border-color: #d7dfbb; }
.scroll-note { font: 9px var(--sans); letter-spacing: .2em; display: flex; align-items: center; gap: 25px; }
.scroll-note span { font-size: 24px; }

/* -- PROGRESS BAR -- */
.progress { position: absolute; bottom: 0; height: 2px; width: 100%; background: #ffffff15; }
.progress span { display: block; height: 100%; transform-origin: left; background: #d4dcaf; transform: scaleX(0); }

/* -- INTRO SECTION -- */
.section { max-width: 1200px; margin: auto; padding: 48px 40px; }
.intro {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px 20px;
}
.intro-card {
  position: relative;
  overflow: hidden;
  height: min(62vh, 520px);
  background: #244a38;
  border: 1px solid #c5b07a;
  box-shadow:
    0 0 0 7px #edeee3,
    0 0 0 8px #c5b07a88,
    0 16px 36px #16332833;
}
.intro-still {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  background: #244a38 url('/images/game_1.jpg') center 38% / cover no-repeat;
}
.intro-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  display: block;
}
.intro-still::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 28%, transparent 38%, #07180f66 100%),
    linear-gradient(180deg, #10241855 0%, transparent 28%, transparent 42%, #0a1c14ee 100%);
}
.intro-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px 32px;
  color: #f6f3e4;
}
.intro-copy .eyebrow {
  color: #f6eec4;
  margin-bottom: 14px;
  text-shadow: 0 2px 18px #06150e;
}
.intro-copy h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.5;
  letter-spacing: .08em;
  color: #fff9ea;
  text-shadow: 0 8px 28px #06150ecc, 0 1px 0 #06150e;
}
.intro-copy p {
  margin-top: 14px;
  max-width: 28em;
  color: #e8ecd8;
  text-shadow: 0 2px 16px #06150e;
}
.intro-go {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
  margin-top: 22px;
  padding: 0 18px;
  min-height: 50px;
  border: 1px solid #d7c48a;
  color: #f6f3e4;
  font: 12px var(--sans);
  letter-spacing: .14em;
  background: #16332888;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px #c5b07a44, 0 8px 22px #06150e55;
}
.intro-go span { font-size: 18px; }
.intro-go:hover { background: #244a38cc; border-color: #efe4b8; }
.intro-mark {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 18px;
  color: #efe4b8;
  font-size: 28px;
  opacity: .72;
  pointer-events: none;
  text-shadow: 0 4px 18px #06150e;
}
.text-link {
  display: inline-flex; align-items: center; gap: 50px;
  font: 12px var(--sans); min-height: 52px;
  border-bottom: 1px solid #768772; margin-top: 25px;
}
.text-link span { font-size: 23px; }

/* -- WALK VIEWPORT -- */
.walk-block {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.walk-viewport {
  position: relative;
  height: min(70vh, 620px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 48% 36%, #9bb56f 0%, #6d8a54 46%, #3d5c38 100%);
  border: 1px solid #c5b07a;
  box-shadow: 0 0 0 7px #edeee3, 0 0 0 8px #c5b07a88, 0 16px 36px #16332833;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.walk-block.is-playing .walk-viewport {
  touch-action: none;
}
.walk-viewport::after {
  content: "";
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 52%, #24421833 100%),
    linear-gradient(180deg, #edeee322 0%, transparent 18%, transparent 62%, #1a2e1844 100%);
}
#walk-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  touch-action: none;
  background: transparent;
}
.walk-hud {
  position: absolute; z-index: 8; top: 16px; left: 16px; right: 108px;
  display: flex; justify-content: space-between; gap: 8px;
  color: #3a4a32;
  font: 9px/1.4 var(--sans);
  letter-spacing: .16em;
  pointer-events: none;
}
.walk-hud span {
  padding: 7px 10px;
  background: #edeee3ee;
  border: 1px solid #c5b07a99;
  box-shadow: 0 6px 18px #16332822;
}
.walk-spirits {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 7px 12px !important;
}
.walk-spirits i {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid #c5b07a;
  background: #edeee366;
}
.walk-spirits i.is-on {
  background: #f2d56a;
  border-color: #efe4b8;
  box-shadow: 0 0 10px #f2d56acc;
}
.walk-compass {
  position: absolute; z-index: 8;
  top: 58px; left: 50%;
  width: 36px; height: 36px;
  margin-left: -18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.walk-block.is-playing .walk-compass.is-live { opacity: 1; }
.walk-viewport:has(.found-copy.show) .walk-compass { opacity: 0; }
.walk-compass b {
  display: block; width: 0; height: 0; margin: 4px auto 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 16px solid #f2d56a;
  filter: drop-shadow(0 2px 6px #16332888);
  transform-origin: 50% 18px;
}
.walk-howto {
  position: absolute; z-index: 14; top: 10px; right: 12px;
  width: auto;
  max-width: min(78%, 260px);
  color: #233e32;
  font: 11px/1.7 var(--sans);
}
.walk-howto summary {
  list-style: none;
  cursor: pointer;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #c5b07a;
  background: #edeee3f0;
  letter-spacing: .16em;
  text-align: center;
  box-shadow: 0 6px 18px #16332822;
}
.walk-howto summary::-webkit-details-marker { display: none; }
.walk-howto[open] {
  background: #edeee3f8;
  border: 1px solid #c5b07a;
  box-shadow: 0 10px 28px #16332833;
}
.walk-howto[open] summary { border: 0; background: transparent; box-shadow: none; }
.walk-howto ul {
  margin: 0; padding: 0 14px 12px 28px;
}
.walk-howto li { margin: 0 0 4px; }
.walk-go {
  position: absolute; z-index: 6;
  left: 50%; bottom: 18px; transform: translateX(-50%);
  min-width: 200px; min-height: 48px;
  padding: 0 22px;
  border: 1px solid #c5b07a;
  background: #edeee3ee;
  color: #233e32;
  font: 12px var(--sans);
  letter-spacing: .12em;
}
.walk-go.is-hold { background: #d7e0b9aa; }
@media (pointer: coarse) {
  .walk-go { display: none; }
  .walk-viewport { height: min(72vh, 640px); }
}
@media (pointer: fine) {
  .walk-pad { display: none !important; }
}
.walk-pad {
  position: absolute; z-index: 8;
  left: 18px; bottom: 22px;
  width: 156px; height: 156px;
  pointer-events: auto;
  touch-action: none;
}
.walk-block:not(.is-playing) .walk-pad,
.walk-viewport:has(.found-copy.show) .walk-pad {
  opacity: 0; pointer-events: none;
}
.walk-pad-ring {
  position: absolute; inset: 0;
  border: 1px solid #c5b07a;
  border-radius: 50%;
  background: #edeee3aa;
  box-shadow: 0 8px 22px #16332833;
}
.walk-pad-knob {
  position: absolute; left: 50%; top: 50%;
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: #233e32;
  box-shadow: 0 4px 12px #16332855;
  will-change: transform;
}
.walk-viewport .found-copy {
  position: absolute; z-index: 10; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; color: #233e32;
  padding: 24px 16px 28px;
  background: none;
  border: 0;
  opacity: 0; pointer-events: none;
}
.found-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 42%, #fff6c888 0%, #c5a45a33 28%, #142016cc 78%);
}
.walk-viewport .found-copy.show {
  opacity: 1; pointer-events: none;
}
.walk-viewport .found-copy.show .found-veil {
  animation: found-flash 1.4s ease-out forwards;
}
.walk-viewport .found-copy.show .walk-panel {
  animation: found-rise .7s cubic-bezier(.18, .9, .22, 1) both;
  position: relative; z-index: 1;
}
.walk-viewport .found-copy.show .button { pointer-events: auto; }
.walk-viewport .found-copy h2 { font-size: 26px; margin-top: 4px; }
.walk-viewport .found-copy p { margin-top: 6px; }
.walk-viewport .found-copy .button { margin: 16px auto 0; }
.found-ghost {
  position: relative;
  width: 86px;
  margin: 0 auto 10px;
  aspect-ratio: 8 / 16;
  overflow: hidden;
  background: #1a2418;
  box-shadow: 0 0 0 1px #c5b07a88, 0 12px 28px #16332855;
}
.found-ghost img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0) contrast(1.4);
  opacity: .78;
  animation: ghost-sway 2.6s ease-in-out infinite;
}
.found-ghost-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 18%, #ffe7a088 46%, transparent 72%);
  mix-blend-mode: screen;
  animation: frame-shine 2.2s ease-in-out infinite;
}
@keyframes ghost-sway {
  0%, 100% { transform: translateY(0) scale(1); opacity: .62; }
  50% { transform: translateY(-7px) scale(1.04); opacity: .92; }
}
@keyframes found-flash {
  0% { opacity: 1; background: #fffdf4; }
  22% { opacity: .95; background: radial-gradient(ellipse at 50% 42%, #ffe7a0cc 0%, #d4b56a55 36%, #1a2418ee 100%); }
  100% { opacity: .88; background: radial-gradient(ellipse at 50% 42%, #fff6c855 0%, #c5a45a22 32%, #142016dd 80%); }
}
@keyframes found-rise {
  from { opacity: 0; transform: translateY(28px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.button.is-gold {
  background: linear-gradient(#f3e4b0, #c5a45a);
  border-color: #8a7030;
  color: #233e32;
  font-weight: 500;
  box-shadow: 0 8px 24px #c5a45a55;
}
.button.is-gold:hover { background: linear-gradient(#fff1c4, #d4b56a); }
.walk-panel {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 22px 22px 20px;
  background: #edeee3f4;
  border: 1px solid #c5b07a;
  box-shadow:
    0 0 0 6px #edeee3aa,
    0 0 0 7px #c5b07a66,
    0 18px 36px #16332833;
  color: #233e32;
}
.walk-panel .walk-forks {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.walk-fork {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #c5b07a;
  background: #233e32;
  color: #f6f3e4;
  font: 15px/1.3 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  letter-spacing: .08em;
}
.walk-fork small {
  font: 8px var(--sans);
  letter-spacing: .18em;
  opacity: .7;
}
.walk-panel h2 { color: #233e32; }
.walk-panel p { color: #3a4a3c; margin: 8px 0 0; }
.walk-panel .button {
  width: 100%;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  background: #233e32;
  color: #f6f3e4;
  border-color: #c5b07a;
}
.walk-panel .text-link {
  width: 100%;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  color: #233e32;
  border-color: #768772;
}
.walk-start,
.walk-clear {
  position: absolute; inset: 0; z-index: 12;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 24px 16px 28px;
  color: #233e32;
  background: linear-gradient(180deg, #1a2e1822 0%, transparent 36%, #edeee3e6 100%);
}
.walk-start[hidden], .walk-clear[hidden] { display: none !important; }
.walk-block[data-phase="clear"] .walk-viewport {
  height: auto;
  min-height: min(70vh, 620px);
  overflow: hidden;
}
.walk-clear {
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  inset: auto;
  padding: 28px 16px 32px;
  background: radial-gradient(ellipse at 50% 36%, #3d4a28aa 0%, #121a14f4 72%);
  animation: clear-in .55s ease both;
}
@keyframes clear-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.clear-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 28%, #fff1c4aa 0%, #ffe7a044 18%, transparent 46%),
    radial-gradient(circle at 18% 78%, #c5a45a55 0%, transparent 34%),
    radial-gradient(circle at 82% 70%, #fff6c844 0%, transparent 32%);
  animation: glow-breathe 2.4s ease-in-out infinite;
}
.clear-glow i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff6c8;
  box-shadow: 0 0 12px #ffe7a0;
  animation: spark-float 2.8s ease-in-out infinite;
}
.clear-glow i:nth-child(1) { left: 18%; top: 22%; animation-delay: 0s; }
.clear-glow i:nth-child(2) { left: 78%; top: 18%; animation-delay: -.4s; }
.clear-glow i:nth-child(3) { left: 12%; top: 62%; animation-delay: -.9s; }
.clear-glow i:nth-child(4) { left: 84%; top: 58%; animation-delay: -1.3s; }
.clear-glow i:nth-child(5) { left: 46%; top: 12%; animation-delay: -.6s; }
.clear-glow i:nth-child(6) { left: 62%; top: 74%; animation-delay: -1.7s; }
@keyframes spark-float {
  0%, 100% { transform: translateY(0) scale(.6); opacity: .25; }
  50% { transform: translateY(-14px) scale(1.3); opacity: 1; }
}
@keyframes glow-breathe {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.walk-panel.is-result {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 26px 22px 22px;
  background: #edeee3f6;
  box-shadow:
    0 0 0 6px #edeee3aa,
    0 0 0 7px #c5b07a,
    0 0 48px #ffe7a0aa,
    0 0 80px #c5a45a55,
    0 24px 48px #00000055;
  animation: found-rise .75s cubic-bezier(.18, .9, .22, 1) .12s both;
}
.clear-heading {
  font-size: 28px !important;
  letter-spacing: .12em;
  margin: 4px 0 0;
}
.walk-clear-frame {
  position: relative;
  width: min(34vw, 168px);
  margin: 14px auto 12px;
  padding: 8px;
  background:
    linear-gradient(#fff6c8, #e8d4a0 18%, #c5a45a 48%, #8a7030 78%, #efe4b8);
  box-shadow:
    0 0 0 1px #fff6c8aa,
    0 16px 40px #16332866,
    0 0 32px #ffe7a066;
  overflow: visible;
  animation: frame-pop .9s cubic-bezier(.16, 1.2, .32, 1) .2s both;
}
@keyframes frame-pop {
  from { transform: scale(.72) rotate(-2deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.frame-clip {
  position: relative;
  display: block;
  overflow: hidden;
}
.walk-clear-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 16;
  object-fit: cover;
  background: #1a2418;
}
.frame-shine {
  position: absolute;
  inset: -45%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(-120%);
  animation: frame-shine 1.8s ease .55s both;
}
@keyframes frame-shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
.walk-panel.is-result #walk-clear-title {
  font: 15px/1.8 var(--sans);
  letter-spacing: .08em;
  margin: 0 0 4px;
}
.walk-block[data-phase="start"] .walk-hud,
.walk-block[data-phase="start"] .walk-go,
.walk-block[data-phase="clear"] .walk-hud,
.walk-block[data-phase="clear"] .walk-go,
.walk-block[data-phase="found"] .walk-go {
  opacity: 0; pointer-events: none;
}
.walk-block[data-phase="play"] .walk-start { display: none !important; }
.walk-block[data-phase="clear"] .walk-howto { display: none; }
.walk-viewport:has(.found-copy.show) .walk-go {
  opacity: 0;
  pointer-events: none;
}

/* -- BUTTON -- */
.button {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 46px; padding: 15px 25px; min-height: 54px;
  border: 1px solid #d0d9b67a;
  font: 12px var(--sans); background: #d7e0b913; color: inherit;
}
.button span { font-size: 22px; }
.button:hover { background: #d7e0b92d; }
.fallback-art { display: none; }

/* -- COLLECTION -- */
.collection { border-top: 1px solid #b3bca54d; }
.collection-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 45px; }
.arrows { display: flex; gap: 12px; }
.arrows button { width: 48px; height: 48px; border: 1px solid #9dac8f; border-radius: 50%; font-size: 20px; }

/* Popular: sticky phone, discrete image swap, then ranking */
.popular-stage {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #edeee3;
  border-top: 1px solid #c5b07a44;
  color: #233e32;
}
.popular-pin {
  position: relative;
  z-index: 1;
  height: calc((var(--popular-n, 4) + 1) * 100vh);
  background: #152018;
}
.popular-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px 16px;
  box-sizing: border-box;
  background-color: #152018;
  background-image:
    radial-gradient(ellipse at 50% 42%, #24382acc 0%, transparent 64%),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%3E%3Cg%20fill%3D%22%23b7c97a%22%20stroke%3D%22%23e8d4a0%22%20stroke-width%3D%22.45%22%20opacity%3D%22.34%22%3E%3Cg%20transform%3D%22translate%2822%2030%29%20rotate%28-32%29%20scale%281%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2898%2016%29%20rotate%2822%29%20scale%280.86%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28148%2058%29%20rotate%28-18%29%20scale%281%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2818%20108%29%20rotate%2838%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2886%2092%29%20rotate%28-48%29%20scale%280.78%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28138%20128%29%20rotate%2816%29%20scale%281%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2848%20152%29%20rotate%28-12%29%20scale%280.84%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28118%20164%29%20rotate%2842%29%20scale%280.72%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: auto, 168px 168px;
  background-repeat: no-repeat, repeat;
}
.popular-kicker {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  text-align: center;
}
.popular-kicker .eyebrow { color: #efe4b8; margin-bottom: 0; }
.phone-shell {
  position: relative;
  z-index: 2;
  display: block;
  width: min(270px, 64vw, calc((100vh - 150px) * 8 / 16));
  aspect-ratio: 8 / 16;
  padding: 10px 9px 12px;
  border-radius: 36px;
  color: inherit;
  text-decoration: none;
  background: #111;
  box-shadow:
    0 0 0 1px #e8d4a0aa,
    0 0 0 7px #1a1810,
    0 0 0 8px #c5b07a88,
    0 28px 60px #00000088;
}
.phone-shell::before {
  content: "";
  position: absolute;
  inset: -28px -36px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, #e8d4a028 0%, transparent 68%);
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  width: 38%; height: 14px;
  margin-left: -19%;
  border-radius: 10px;
  background: #0a0a0a;
  z-index: 4;
}
.phone-screen {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #111;
}
.phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #111;
  pointer-events: none;
}
.phone-home {
  position: absolute;
  bottom: 16px; left: 50%;
  width: 28%; height: 4px;
  margin-left: -14%;
  border-radius: 4px;
  background: #ffffff55;
  z-index: 4;
}
.phone-rank {
  position: absolute;
  left: 18px;
  top: 32px;
  z-index: 5;
  font: italic 28px/1 Georgia, serif;
  color: #fffef8;
  text-shadow: 0 2px 10px #000a;
  pointer-events: none;
}
.popular-board {
  position: relative;
  z-index: 4;
  margin-top: -100vh;
  transform: translate3d(0, 0, 0);
  background-color: #edeee3;
  background-image:
    radial-gradient(ellipse at 50% 0%, #f6f3e8cc 0%, transparent 46%),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%3E%3Cg%20fill%3D%22%237a8a52%22%20stroke%3D%22%23c5b07a%22%20stroke-width%3D%22.45%22%20opacity%3D%22.2%22%3E%3Cg%20transform%3D%22translate%2822%2030%29%20rotate%28-32%29%20scale%281%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2898%2016%29%20rotate%2822%29%20scale%280.86%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28148%2058%29%20rotate%28-18%29%20scale%281%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2818%20108%29%20rotate%2838%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2886%2092%29%20rotate%28-48%29%20scale%280.78%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28138%20128%29%20rotate%2816%29%20scale%281%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2848%20152%29%20rotate%28-12%29%20scale%280.84%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28118%20164%29%20rotate%2842%29%20scale%280.72%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: auto, 168px 168px;
  background-repeat: no-repeat, repeat;
  color: #233e32;
  min-height: 100vh;
  padding: 56px 0 64px;
  box-shadow: 0 -18px 40px #0e161133;
}
.popular-board-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}
.popular-board .collection-head { margin-bottom: 28px; }
.popular-board-title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: .08em;
  line-height: 1.5;
}
.art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
  margin-top: 0;
}
.art-grid .art-item {
  flex: none;
  width: 100%;
  min-width: 0;
  color: #233e32;
  background: none;
  padding: 0;
  border: 0;
}
.art-grid .art-image {
  aspect-ratio: 8 / 16;
  border: 1px solid #c5b07a;
  box-shadow:
    0 0 0 5px #edeee3,
    0 0 0 6px #c5b07a66,
    0 14px 28px #16332822;
  background: #c5b07a22;
}
.art-grid .art-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.art-grid .art-meta h3 {
  font-size: 15px;
  letter-spacing: .06em;
}
.art-grid .art-item > p {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #6d7a62;
}
.popular-board .more-link,
.popular-board #reset-filter {
  display: flex;
  width: fit-content;
  margin: 36px auto 0;
}
.popular-stage.is-filtered .popular-pin,
.popular-stage.is-sealed .popular-pin { display: none; }
.popular-stage.is-filtered .popular-board,
.popular-stage.is-sealed .popular-board {
  margin-top: 0;
  padding-top: 48px;
  box-shadow: none;
  transform: none;
}

.art-scroll {
  display: flex; gap: 36px;
  overflow: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 3px 3px 20px;
}
.art-scroll::-webkit-scrollbar { display: none; }
.art-item { flex: 0 0 31%; min-width: 0; scroll-snap-align: start; }
.art-image { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #b6c6aa; }
.art-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.art-item:hover img { transform: scale(1.035); }
.art-rank {
  position: absolute; top: 12px; left: 15px;
  color: #f7f2dd; font: italic 36px Georgia,serif; text-shadow: 0 2px 7px #0008;
}
.art-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.art-meta h3 { font-size: 19px; font-weight: 400; letter-spacing: .07em; }
.art-meta span { font-size: 23px; }
.art-item p { font-size: 10px; margin-top: 5px; color: #77816d; }
.swipe-note { text-align: right; font: 8px var(--sans); letter-spacing: .15em; margin-top: 18px; }
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 26px;
  border: 1px solid #c5b07a;
  background: #f7f3e6;
  letter-spacing: .12em;
  color: #233e32;
}
.more-link span { font-size: 16px; }
.more-link:hover { background: #efe6cc; }
#new.section {
  max-width: none;
  margin: 0;
  padding: 0;
}
.new {
  max-width: none;
  margin: 0;
  padding: 0;
  background-color: #152018;
  background-image:
    radial-gradient(ellipse at 18% 0%, #24382a88 0%, transparent 46%),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%3E%3Cg%20fill%3D%22%23b7c97a%22%20stroke%3D%22%23e8d4a0%22%20stroke-width%3D%22.45%22%20opacity%3D%22.18%22%3E%3Cg%20transform%3D%22translate%2822%2030%29%20rotate%28-32%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2898%2016%29%20rotate%2822%29%20scale%280.86%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28148%2058%29%20rotate%28-18%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2818%20108%29%20rotate%2838%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: auto, 168px 168px;
  background-repeat: no-repeat, repeat;
  color: #f6efd2;
  border-top: 1px solid #c5b07a33;
}
.new-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 80px 0 72px;
}
.new-spine {
  position: absolute;
  left: 18px;
  top: 92px;
  writing-mode: vertical-rl;
  font: 10px/1 var(--sans);
  letter-spacing: .42em;
  color: #c5b07a99;
  pointer-events: none;
}
#new .collection-head {
  width: min(1200px, 100%);
}
#new .new-rail {
  width: min(1200px, calc(100% - clamp(80px, 10vw, 160px)));
}
#new .collection-head {
  padding: 0 40px 0 56px;
  margin-bottom: 28px;
  align-items: flex-end;
}
#new .eyebrow { color: #e8d4a0; }
#new h2 {
  color: #f6efd2;
  font-weight: 400;
}
#new .arrows button {
  border: 1px solid #c5b07a88;
  color: #f6efd2;
  background: transparent;
}
#new .arrows button:hover {
  background: #c5b07a22;
}
.new-rail {
  position: relative;
}
#new .new-hang {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 28px;
  align-items: end;
  counter-reset: plate;
  padding: 8px 0 12px;
}
#new .art-item {
  flex: none;
  width: auto;
  min-width: 0;
  margin: 0;
  color: #f6efd2;
  counter-increment: plate;
}
#new .art-item:nth-child(even) { transform: translateY(-36px); }
#new .art-image {
  aspect-ratio: 8 / 16;
  border: 1px solid #c5b07a;
  box-shadow:
    0 0 0 6px #152018,
    0 0 0 7px #c5b07a77,
    0 22px 40px #00000077;
  background: #1a1810;
}
#new .art-image::after {
  content: counter(plate, decimal-leading-zero);
  position: absolute;
  top: 12px;
  left: 12px;
  font: italic 26px/1 Georgia, serif;
  color: #fffef8;
  text-shadow: 0 2px 10px #000a;
  pointer-events: none;
}
#new .art-meta {
  margin-top: 14px;
}
#new .art-meta h3 {
  font-size: 16px;
  letter-spacing: .08em;
}
#new .art-item > p { display: none; }
#new .more-link {
  display: flex;
  width: fit-content;
  margin: 20px 0 0;
  color: #f6efd2;
  background: transparent;
  border-color: #c5b07a;
}
#new .more-link:hover { background: #c5b07a22; }

/* -- MAP -- */
.map-section {
  max-width: none;
  background: #fff;
  color: #233e32;
  display: block;
  padding: 56px 20px 72px;
  overflow: hidden;
}
.map-copy {
  max-width: 520px;
  margin: 0 auto 28px;
  text-align: center;
}
.map-copy .eyebrow { color: #8a7a4a; }
.map-copy h2 { color: #233e32; }
.map-section p { margin-top: 16px; color: #5c6756; }
.forest-map {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.map-art {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 128%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  display: block;
}
#map-links {
  position: absolute;
  inset: 28px;
  pointer-events: none;
}
.map-pin {
  position: absolute;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 12px;
  width: max-content;
  max-width: 100%;
  color: #193d30;
  background: #fffaf0;
  border: 1.5px solid #193d30;
  border-radius: 999px;
  box-shadow: 0 10px 22px #1633282e;
  white-space: nowrap;
  text-decoration: none;
  z-index: 1;
  pointer-events: auto;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}
.map-pin small {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 12px/1 var(--sans);
  letter-spacing: .08em;
  color: #f6efd2;
  background: #193d30;
  border: 0;
  box-shadow: none;
}
.map-pin span {
  font-size: 16px;
  letter-spacing: .08em;
  color: #193d30;
  text-shadow: none;
}
.map-pin:hover { z-index: 2; background: #193d30; }
.map-pin:hover small {
  background: #f6efd2;
  color: #193d30;
}
.map-pin:hover span { color: #f6efd2; }
.map-pin:nth-child(1) { top: 22%; left: 32%; }
.map-pin:nth-child(2) { top: 58%; left: 27%; }
.map-pin:nth-child(3) { top: 40%; left: 23%; }
.map-pin:nth-child(4) { top: 18%; left: 68%; }
.map-pin:nth-child(5) { top: 44%; left: 70%; }
.map-pin:nth-child(6) { top: 58%; left: 78%; }
.map-pin:nth-child(7) { top: 82%; left: 38%; }

/* -- HOW -- */
.how {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #edeee3;
  color: #233e32;
}
.how-head {
  text-align: center;
  padding: 64px 24px 28px;
}
.how-head .eyebrow { color: #8a7a4a; margin-bottom: 16px; }
.how-head h2 {
  color: #233e32;
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
}
.how-stage {
  position: relative;
}
.how-art {
  display: block;
  width: 100%;
  height: auto;
}
.how-beats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 36px 4% 8px;
  list-style: none;
  color: #233e32;
}
.how-beats li {
  padding: 0 7%;
}
.how-beats b {
  display: block;
  font: italic 28px/1 Georgia, serif;
  color: #8a7a4a;
  margin-bottom: 8px;
}
.how-beats h3 {
  font-weight: 400;
  font-size: clamp(18px, 2.1vw, 26px);
  letter-spacing: .08em;
  margin: 0 0 8px;
}
.how-beats p {
  font-size: 12px;
  line-height: 1.9;
  color: #5c6756;
}
.how-foot {
  display: flex;
  justify-content: center;
  padding: 28px 24px 56px;
}
.how-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  background: #193d30;
  color: #f6efd2;
  font: 14px/1 var(--sans);
  letter-spacing: .16em;
}
.how-cta span { font-size: 20px; }
.how-cta:has(small) {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 8px;
}
.how-cta small {
  flex-basis: 100%;
  text-align: center;
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.4;
  color: #efe3b8;
}

/* -- FINAL -- */
.final {
  position: relative;
  height: 280vh;
  margin: 0;
  padding: 0;
  max-width: none;
  background: #0c1410;
  color: #f6efe8;
}
.final-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}
.final-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  display: block;
}
.final-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 48%, #0c141000 18%, #0c141066 100%);
  pointer-events: none;
}
.final-copy {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 0;
  text-align: left;
}
.final .eyebrow {
  color: #e8d4a0;
  opacity: .85;
  font-size: 11px;
  text-shadow: 0 1px 3px rgba(4, 8, 6, 1), 0 6px 18px rgba(4, 8, 6, .98);
}
.final h2 {
  font-size: clamp(36px, 5.4vh, 58px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .04em;
  margin-top: 16px;
}
.final h2,
.final p {
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
}
.final p {
  margin: 16px 0 28px;
  font-size: clamp(20px, 2.8vh, 30px);
  line-height: 1.7;
  letter-spacing: .08em;
}
.final .ch {
  opacity: .12;
  color: #f7f1e4;
  text-shadow: 0 1px 4px rgba(4, 8, 6, 1), 0 8px 26px rgba(4, 8, 6, 1);
}
.final .ch.is-lit {
  color: #f4e2a8;
  text-shadow: 0 1px 4px rgba(4, 8, 6, 1), 0 10px 28px rgba(4, 8, 6, 1), 0 0 18px #e8d4a099;
}
.final .hero-join {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  display: block;
  width: min(360px, 100%);
  margin: 8px auto 0;
  opacity: 0;
  pointer-events: none;
  animation: none;
}
.final .hero-join.is-on {
  opacity: 1;
  pointer-events: auto;
}
.final-note {
  display: block;
  margin-top: 18px;
  font: 12px var(--sans);
  letter-spacing: .12em;
  color: #f6efe8;
  opacity: 0;
  transition: opacity .4s ease;
}
.final-note.is-on { opacity: .82; }
.reduced .final .ch,
.final.is-ready .ch { opacity: 1 !important; }
.reduced .final .hero-join,
.reduced .final-note,
.final.is-ready .hero-join,
.final.is-ready .final-note { opacity: 1; pointer-events: auto; }

/* -- TODAY PICK UP -- */
.today {
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #121a14;
  background-image:
    radial-gradient(ellipse at 50% 42%, #3a4a2888 0%, transparent 52%),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%3E%3Cg%20fill%3D%22%23b7c97a%22%20stroke%3D%22%23e8d4a0%22%20stroke-width%3D%22.45%22%20opacity%3D%22.16%22%3E%3Cg%20transform%3D%22translate%2822%2030%29%20rotate%28-32%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2898%2016%29%20rotate%2822%29%20scale%280.86%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28148%2058%29%20rotate%28-18%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2818%20108%29%20rotate%2838%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M0%2014%20C%207%202%2018%20-2%2030%2014%20C%2018%2030%207%2026%200%2014Z%22%2F%3E%3Cpath%20d%3D%22M8%2014%20L%2024%2014%22%20fill%3D%22none%22%20stroke-width%3D%22.55%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: auto, 168px 168px;
  background-repeat: no-repeat, repeat;
  color: #f6efd2;
  border-top: 1px solid #c5b07a33;
}
.today-stage {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 24px 88px;
  text-align: center;
}
.today-spine {
  position: absolute;
  left: 18px;
  top: 96px;
  writing-mode: vertical-rl;
  font: 10px/1 var(--sans);
  letter-spacing: .42em;
  color: #c5b07a99;
  pointer-events: none;
}
.today-copy {
  max-width: 560px;
  margin: 0 auto 40px;
}
.today-copy .eyebrow { color: #e8d4a0; }
.today-copy h2 {
  color: #f6efd2;
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
}
.today-copy p {
  margin: 16px 0 0;
  color: #c5b07acc;
}
.today-card {
  position: relative;
  display: block;
  max-width: 400px;
  margin: 0 auto;
  z-index: 1;
}
.today-card::before {
  content: "";
  position: absolute;
  left: -70%;
  right: -70%;
  top: -18%;
  bottom: 8%;
  background: radial-gradient(ellipse at 50% 42%, #e8d4a03d 0%, transparent 64%);
  pointer-events: none;
  z-index: -1;
}
.today-frame {
  position: relative;
  aspect-ratio: 8 / 16;
  overflow: hidden;
  background: #1a1810;
  border: 1px solid #c5b07a;
  box-shadow:
    0 0 0 8px #121a14,
    0 0 0 9px #c5b07a88,
    0 28px 60px #00000088;
}
.today-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s;
}
.today-card:hover .today-frame img { transform: scale(1.03); }
.today-plaque {
  margin-top: 22px;
  color: #f6efd2;
}
.today-plaque span {
  display: block;
  font: 9px var(--sans);
  letter-spacing: .2em;
  color: #e8d4a0;
}
.today-plaque strong {
  display: block;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .1em;
  margin: 10px 0 8px;
}
.today-plaque small {
  font: 12px var(--sans);
  letter-spacing: .12em;
  color: #d5dcc4;
}
.today-plaque b { font-weight: 400; font-size: 16px; }

body.is-member [data-auth="guest"] { display: none !important; }
body.is-guest [data-auth="member"] { display: none !important; }
body.is-signed-in .hero-join { display: none !important; }

.mori-foot {
  background:
    radial-gradient(ellipse at 8% 0%, #1b4338 0%, transparent 46%),
    #102822;
  color: #e7ecda;
  padding: 76px 7% 40px;
  border-top: 1px solid #c5b07a55;
}
.mori-foot__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  column-gap: 80px;
  row-gap: 48px;
  align-items: start;
}
.mori-foot__brand { padding-top: 2px; }
.mori-foot__logo {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: .94;
}
.mori-foot__kicker {
  margin: 22px 0 0;
  font: 10px/1 var(--sans);
  letter-spacing: .28em;
  color: #c5b07a;
}
.mori-foot__tagline {
  margin: 14px 0 0;
  max-width: 12em;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .12em;
  color: #f4efe4;
}
.mori-foot__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 64px;
  padding-top: 6px;
}
.mori-foot__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .26em;
  color: #c5b07a;
}
.mori-foot__head::after {
  content: "";
  width: 32px;
  height: 1px;
  background: #c5b07a99;
}
.mori-foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mori-foot__list a {
  display: inline-block;
  padding: 7px 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .08em;
  color: #e4ead8;
  border-bottom: 1px solid transparent;
}
.mori-foot__list a:hover { color: #f6efd2; border-bottom-color: #c5b07a88; }
.mori-foot__copy { grid-column: 1 / -1; text-align: center; }
.mori-foot__rule { display: block; height: 1px; margin-bottom: 18px; background: linear-gradient(90deg, #c5b07a14, #c5b07a66 50%, #c5b07a14); }
.mori-foot__copy p {
  margin: 0;
  font: 10px/1.6 var(--sans);
  letter-spacing: .16em;
  color: #b7c2ab;
}

/* -- DIALOGS -- */
dialog {
  border: 1px solid #c5cfb0; background: #eff0e5; color: #233e32;
  padding: 55px; max-width: 90vw; width: 600px; max-height: 90svh; overflow: auto;
}
dialog::backdrop { background: #0c281ebd; backdrop-filter: blur(8px); }
.close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; font-size: 28px; }
dialog nav { display: grid; margin-top: 25px; }
dialog nav a { display: flex; justify-content: space-between; border-bottom: 1px solid #b8c3ab; padding: 18px 0; }
dialog nav a span { font: 10px var(--sans); }
#menu-dialog #motion {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 18px 0; margin: 0;
  border-bottom: 1px solid #b8c3ab;
  font-size: 16px; letter-spacing: .04em; text-align: left; opacity: .72;
}
#detail-dialog { width: 850px; padding: 45px; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
#detail-dialog[open] { display: grid; }
#detail-image { width: 100%; max-height: 65svh; object-fit: contain; }
#detail-title { font-size: 30px; }
#detail-description { margin: 18px 0; }
.demo-note { font-size: 10px; margin-bottom: 23px; color: #73806c; }

/* -- NOTICE -- */
#notice {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  padding: 12px 25px; background: #193d30; color: #fff;
  z-index: 40; opacity: 0; pointer-events: none;
  font: 12px var(--sans);
}

/* -- REDUCED / NO-WEBGL FALLBACK -- */
.reduced #hero canvas { display: none; }
.reduced .scene-copy:not(.active), .no-webgl .scene-copy:not(.active) { display: none; }
.reduced .stage-bottom, .no-webgl .stage-bottom { position: relative; bottom: auto; padding: 20px 0; }
.reduced #hero .stage-bottom,
.no-webgl #hero .stage-bottom {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 14px;
  padding: 0;
}
.reduced .walk-block, .no-webgl .walk-block { height: auto; }
.reduced .walk-viewport, .no-webgl .walk-viewport { height: min(58vh, 480px); }
.reduced #walk canvas, .no-webgl #walk canvas { display: block; opacity: 1; }
.reduced .fallback-art, .no-webgl .fallback-art { display: none; }
.reduced .walk-hint, .no-webgl .walk-hint { display: none; }
.reduced .hero-side, .no-webgl .hero-side { display: none; }
.reduced .popular-stage, .no-webgl .popular-stage {
  height: auto;
  background: #edeee3;
  color: #233e32;
}
.reduced .popular-pin {
  height: calc((var(--popular-n, 4) + 1) * 100vh);
}
.reduced .popular-board, .no-webgl .popular-board { padding-top: 56px; }
body:not(.is-heroing) .hero-orb { animation: none; visibility: hidden; }
.noscript-note { padding: 30px; }
body:has(noscript .noscript-note) .scene-copy { opacity: 1; }

/* -- LARGE SCREENS -- */
@media(min-width:1500px) {
  .scene-copy { left: calc((100% - 1200px) / 2); }
}

/* -- TABLET -- */
@media(max-width:700px) {
  header { padding: 12px 16px; }
  .brand img { height: 38px; }
  .desktop-link { display: none; }
  .auth-link { font-size: 12px; letter-spacing: .12em; padding: 11px 16px; margin-right: 8px; }
  .scene-copy { left: 22px; right: 22px; top: 20%; max-width: none; padding: 0; }
  .scene-copy .eyebrow { font-size: 9px; letter-spacing: .2em; margin-bottom: 14px; }
  .scene-copy h1 { font-size: 42px; letter-spacing: .1em; margin-bottom: 14px; }
  .scene-copy h3 { font-size: 19px; line-height: 1.75; }
  .scene-copy p { font-size: 13px; line-height: 1.95; margin-top: 12px; color: #fff9ea; }
  .scene-copy h2 { font-size: 30px; line-height: 1.55; }
  .scene-copy:not(:first-child) { top: 22%; }
  .hero-side { right: 13px; top: 16%; font-size: 6px; }
  .stage-bottom { left: 20px; right: 20px; bottom: 14px; align-items: center; flex-wrap: nowrap; }
  body.is-member .stage-bottom { bottom: 14px; }
  .chapter-dots { gap: 3px; }
  .chapter-dots button { width: 27px; font-size: 9px; }
  .scroll-note { font-size: 7px; gap: 8px; }
  .scroll-note span { font-size: 18px; }
  .section { padding: 40px 22px; }
  #new.section { padding: 0; }
  h2 { font-size: 31px; line-height: 1.65; letter-spacing: .035em; }
  .eyebrow { font-size: 8px; letter-spacing: .18em; margin-bottom: 24px; }
  p { font-size: 12px; }
  .intro { padding: 72px 22px 16px; }
  .intro-card { height: min(68vh, 540px); }
  .intro-copy { padding: 22px 20px 24px; }
  .intro-copy h2 { font-size: 30px; letter-spacing: .05em; }
  .intro-go { min-height: 48px; margin-top: 18px; width: 100%; justify-content: space-between; }
  .intro-mark { top: 12px; right: 14px; font-size: 22px; }
  .walk-top { left: 23px; right: 23px; top: 28px; }
  .walk-top .eyebrow { font-size: 7px; }
  .walk-top > span:last-child { font-size: 9px; }
  .walk-hint { font-size: 20px; }
  .found-copy { bottom: 5%; }
  .found-copy h2 { font-size: 22px; }
  .found-copy .eyebrow { font-size: 8px; }
  .found-copy .button { padding: 12px 20px; min-height: 50px; }
  .walk-start h2, .walk-clear h2, .clear-heading { font-size: 26px; }
  .walk-howto { top: 8px; right: 8px; }
  .walk-clear-frame { width: min(42vw, 150px); }
  .collection { padding-right: 0; }
  .popular-sticky { padding: 58px 16px 12px; }
  .popular-board { padding: 36px 0 52px; }
  .popular-board-inner { padding: 0 22px; }
  .art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }
  .art-grid .art-item { flex-basis: auto; }
  .art-grid .art-meta h3 { font-size: 13px; }
  .popular-board .collection-head {
    display: flex;
    padding-bottom: 0;
    margin-bottom: 28px;
  }
  .art-grid .art-rank { font-size: 24px; top: 8px; left: 10px; }
  .collection-head { padding-right: 26px; align-items: center; margin-bottom: 30px; }
  .collection h2 { font-size: 29px; }
  .arrows { gap: 5px; }
  .arrows button { width: 35px; height: 44px; border: 0; font-size: 22px; }
  .art-scroll { gap: 22px; padding-right: 26px; }
  .art-item { flex-basis: 73%; }
  .art-meta h3 { font-size: 18px; }
  .art-rank { font-size: 32px; }
  .swipe-note { padding-right: 26px; font-size: 7px; }
  .new-stage { padding: 56px 0 52px; }
  .new-spine { display: none; }
  #new .collection-head { padding: 0 22px; }
  #new .new-rail { width: calc(100% - 36px); }
  #new .new-hang {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    align-items: start;
  }
  #new .art-item:nth-child(even) { transform: none; }
  #new .more-link { margin: 20px 0 0; }
  .map-section { padding: 40px 16px 48px; }
  .map-section h2 { font-size: 32px; }
  .forest-map { max-width: none; }
  .map-art { width: 128%; top: 46%; }
  #map-links { inset: 18px; }
  .map-pin {
    gap: 10px;
    padding: 9px 16px 9px 9px;
  }
  .map-pin small {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 11px;
  }
  .map-pin span { font-size: 14px; letter-spacing: .06em; }
  .map-pin:nth-child(1) { top: 18%; left: 34%; }
  .map-pin:nth-child(2) { top: 66%; left: 30%; }
  .map-pin:nth-child(3) { top: 42%; left: 26%; }
  .map-pin:nth-child(4) { top: 30%; left: 68%; }
  .map-pin:nth-child(5) { top: 54%; left: 66%; }
  .map-pin:nth-child(6) { top: 70%; left: 76%; }
  .map-pin:nth-child(7) { top: 88%; left: 36%; }
  .how-head { padding: 48px 22px 18px; }
  .how-head h2 { font-size: 29px; }
  .how-beats {
    display: block;
    padding: 8px 22px 8px;
  }
  .how-beats li {
    padding: 18px 0 8px;
    border-top: 1px solid #c5b07a55;
  }
  .how-beats h3 { font-size: 22px; }
  .how-beats p { font-size: 12px; }
  .today-stage { padding: 56px 22px 64px; }
  .today-spine { display: none; }
  .today-copy { margin-bottom: 28px; }
  .today-copy h2 { font-size: 32px; }
  .today-card { max-width: 280px; }
  .today-plaque strong { font-size: 22px; }
  .how-foot { padding: 12px 22px 48px; }
  .final { height: 260vh; }
  .final h2 { font-size: 30px; }
  .final p { font-size: 18px; margin: 22px 0 28px; }
  .final .eyebrow { font-size: 9px; }
  .mori-foot { padding: 48px 22px 32px; }
  .mori-foot__inner,
  .mori-foot__grid { grid-template-columns: 1fr; gap: 32px; }
  dialog { padding: 48px 26px; max-width: 92vw; }
  dialog h2 { font-size: 29px; }
  #detail-dialog[open] { display: block; padding: 40px 25px; }
  #detail-image { height: 38svh; margin-bottom: 22px; }
  #detail-dialog .eyebrow { margin-bottom: 12px; }
  #detail-title { font-size: 23px; }
  .demo-note { line-height: 1.8; }
  .reduced .walk-viewport, .no-webgl .walk-viewport { height: min(62vh, 520px); }
}

@media(max-width:700px) {
  .collection-head { gap: 8px; }
  .arrows { gap: 0; }
  .collection-head h2 { font-size: 27px; }
  .scene-copy p { color: #fff8e4; }
  .hero-shade {
    background:
      radial-gradient(ellipse at 32% 34%, #07140f55 0%, transparent 46%),
      radial-gradient(ellipse at 50% 42%, transparent 50%, #07180f66 100%),
      linear-gradient(180deg, #0b1c1640 0%, transparent 26%, transparent 64%, #07140fd4 100%);
  }
}

@media(max-width:700px) {
  .collection-head { display: block; position: relative; padding-bottom: 36px; }
  .collection-head .arrows { position: absolute; right: 24px; bottom: -5px; }
  .collection-head h2 { font-size: 29px; }
}

/* -- LANDSCAPE SMALL -- */
@media(max-height:520px) and (min-width:600px) {
  .scene-copy { top: 22% !important; }
  .scene-copy h1 { font-size: 55px; margin-bottom: 12px; }
  .scene-copy h3 { font-size: 19px; }
  .scene-copy h2 { font-size: 35px; }
  .scene-copy p { font-size: 10px; margin-top: 10px; }
  .scene-copy .eyebrow { margin-bottom: 10px; }
  .found-copy h2 { font-size: 21px; }
  .found-copy p { display: none; }
  .walk-top { top: 18px; }
}

@media(max-height:520px) and (min-width:600px) {
  header { padding: 10px 5%; }
  .brand img { height: 36px; }
  .scene-copy { top: 24% !important; }
}

/* -- REDUCED MOTION -- */
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* -- MISC FIXES -- */
.chapter-dots button { min-width: 36px; }
.arrows button { min-width: 44px; min-height: 44px; }
[hidden] { display: none !important; }
.reduced .scene-copy, .no-webgl .scene-copy { right: auto; }
.found-copy:not(.show) { visibility: hidden; }

/* ===========================================================
 * HERO FILM - スクロール位置 0〜1 を WebP 連番へ
 * =========================================================== */

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 1;
  pointer-events: none;
  background: #1a3329;
}
#hero-canvas {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background: #1a3329;
}
#hero-canvas.is-ready { opacity: 1; }
.reduced #hero-canvas { opacity: 0; }

#hero .story-copies  {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
#hero .hero-side     { z-index: 10; }
#hero .stage-bottom  { z-index: 12; }
#hero .progress      { z-index: 12; }
#hero .scene-copy    { z-index: 11; }
#hero .hero-join     { z-index: 13; }

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 4px 1px #fff,
    0 0 10px 2px #ffe9a8cc;
  opacity: var(--o, .9);
  animation:
    orb-drift var(--t, 8s) ease-in-out infinite alternate,
    orb-glow var(--g, 1.8s) ease-in-out infinite;
  animation-delay: var(--k, 0s), var(--k, 0s);
  will-change: transform, opacity;
}
.hero-orb.is-spark {
  background: #fffef4;
  box-shadow:
    0 0 3px 1px #fff,
    0 0 8px 2px #ffe9a8dd;
}
@keyframes orb-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(var(--dx, 6px), var(--dy, -8px)); }
}
@keyframes orb-glow {
  0%, 100% { opacity: .15; }
  45%      { opacity: 1; }
  55%      { opacity: .7; }
  70%      { opacity: 1; }
}

.hero-join {
  position: absolute;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  display: block;
  width: min(360px, calc(100% - 32px));
  text-decoration: none;
  color: #f8f1c8;
  isolation: isolate;
  animation: hero-join-float 3.8s ease-in-out infinite;
}
.hero-join-halo {
  position: absolute;
  inset: -7px;
  border-radius: 6px;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 22%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 92% 28%, #ffe9a8 0 1.5px, transparent 3px),
    radial-gradient(circle at 14% 78%, #fff6c4 0 1px, transparent 2.5px),
    radial-gradient(circle at 86% 82%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 50% 0%, #ffe48a55 0%, transparent 46%);
  box-shadow:
    0 0 0 1px #f0d56a77,
    0 0 18px #e8c45a99,
    0 0 42px #d4b13a66;
  animation: hero-join-pulse 2.8s ease-in-out infinite;
}
.hero-join-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 88px;
  padding: 12px 18px 14px;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid #f6e7a8cc;
  background:
    radial-gradient(ellipse at 50% 0%, #6d5a28aa 0%, transparent 58%),
    linear-gradient(180deg, #243528 0%, #10180f 58%, #0c140e 100%);
  box-shadow:
    inset 0 1px 0 #ffe9a866,
    0 12px 28px #040c0888;
}
.hero-join-flora {
  position: absolute;
  inset: -10% -6%;
  width: 112%;
  height: 120%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.hero-join-flora .tendril {
  fill: none;
  stroke: #9cb56a;
  stroke-width: 1.7;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px #04180c99);
}
.hero-join-flora .tendril.thin {
  stroke: #7e9a52;
  stroke-width: 1.1;
  opacity: .85;
}
.hero-join-flora .leaf path {
  fill: #b7c97a;
  stroke: #6f8a48;
  stroke-width: .6;
}
.hero-join-flora .vine-l,
.hero-join-flora .vine-r {
  transform-box: fill-box;
  transform-origin: center bottom;
}
.hero-join-flora .vine-l { animation: vine-sway 4.6s ease-in-out infinite; }
.hero-join-flora .vine-r { animation: vine-sway-r 5.2s ease-in-out infinite; }
.hero-join-flora .leaf {
  transform-box: fill-box;
  transform-origin: 20% 80%;
  animation: leaf-flutter 2.8s ease-in-out infinite;
}
.hero-join-flora .l2 { animation-duration: 3.3s; animation-delay: -.4s; transform-origin: 18% 85%; }
.hero-join-flora .l3 { animation-duration: 2.5s; animation-delay: -.9s; }
.hero-join-flora .l4 { animation-duration: 3.1s; animation-delay: -.2s; }
.hero-join-flora .l5 { animation-duration: 2.7s; animation-delay: -.6s; transform-origin: 80% 80%; }
.hero-join-flora .l6 { animation-duration: 3.4s; animation-delay: -1.1s; transform-origin: 82% 85%; }
.hero-join-flora .l7 { animation-duration: 2.4s; animation-delay: -.3s; transform-origin: 80% 80%; }
.hero-join-flora .l8 { animation-duration: 3s; animation-delay: -.8s; transform-origin: 80% 85%; }
@keyframes vine-sway {
  0%, 100% { transform: rotate(-3deg) translateX(0); }
  50% { transform: rotate(4deg) translateX(3px); }
}
@keyframes vine-sway-r {
  0%, 100% { transform: rotate(3deg) translateX(0); }
  50% { transform: rotate(-4deg) translateX(-3px); }
}
@keyframes leaf-flutter {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  35% { transform: rotate(16deg) translateY(-2px); }
  62% { transform: rotate(-6deg) translateY(1px); }
}
.hero-join-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 42%, #f0d56a28 0%, transparent 64%);
  animation: hero-join-breathe 3.2s ease-in-out infinite;
  pointer-events: none;
}
.hero-join-body::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 1;
  border: 1px solid #f0d56a33;
  pointer-events: none;
}
.hero-join-orbs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-join-kicker {
  position: relative;
  z-index: 2;
  font: 8px/1 var(--sans);
  letter-spacing: .42em;
  color: #f3e7b4;
}
.hero-join-title {
  position: relative;
  z-index: 2;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .12em;
  margin-right: -.12em;
  white-space: nowrap;
  color: #fff8d6;
  text-shadow:
    0 0 12px #f0d56acc,
    0 0 24px #e8c45a88,
    0 1px 2px #0008;
  animation: hero-join-title-glow 3.2s ease-in-out infinite;
}
.hero-join-note {
  position: relative;
  z-index: 2;
  font: 11px/1.4 var(--sans);
  letter-spacing: .16em;
  color: #efe3b8;
}
.hero-join:hover .hero-join-title {
  color: #fffced;
  text-shadow: 0 0 16px #fff3c4, 0 0 28px #f0d56acc;
}
@keyframes hero-join-pulse {
  0%, 100% {
    opacity: .85;
    box-shadow:
      0 0 0 1px #f0d56a66,
      0 0 14px #e8c45a88,
      0 0 32px #d4b13a55;
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 0 1px #fff3c4aa,
      0 0 26px #ffe48acc,
      0 0 56px #f0d56a99;
  }
}
@keyframes hero-join-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes hero-join-breathe {
  0%, 100% { opacity: .28; }
  50% { opacity: 1; }
}
@keyframes hero-join-title-glow {
  0%, 100% {
    text-shadow: 0 0 10px #f0d56a99, 0 1px 2px #0008;
  }
  50% {
    text-shadow: 0 0 18px #fff3c4, 0 0 32px #f0d56acc, 0 1px 2px #0008;
  }
}

.reduced .hero-orb,
.reduced .hero-join,
.reduced .hero-join-halo,
.reduced .hero-join-body::before,
.reduced .hero-join-title,
.reduced .hero-join-flora .vine-l,
.reduced .hero-join-flora .vine-r,
.reduced .hero-join-flora .leaf {
  animation: none;
}
.reduced .hero-orb { opacity: .75; }

#hero .scene-copy[data-scene="1"] { top: 30%; }
#hero .scene-copy[data-scene="2"] {
  left: auto;
  right: 9%;
  text-align: right;
  top: 26%;
}
#hero .scene-copy[data-scene="3"] {
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  top: 24%;
}
#hero .scene-copy[data-scene="3"].active { transform: none; }

@media (max-width: 700px) {
  .hero-join {
    width: calc(100% - 28px);
    bottom: 96px;
  }
  .hero-join-body { min-height: 80px; padding: 11px 14px 12px; }
  .hero-join-title { font-size: 18px; letter-spacing: .06em; margin-right: -.06em; }
  #hero .scene-copy[data-scene="2"],
  #hero .scene-copy[data-scene="3"] {
    left: 20px;
    right: 20px;
    text-align: left;
  }
}

#scroll-glint {
  position: fixed;
  inset: 0;
  z-index: 36;
  pointer-events: none;
  overflow: hidden;
}
.scroll-glint {
  position: fixed;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: #fff6c8;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: scroll-glint .7s ease-out forwards;
}
@keyframes scroll-glint {
  0% { opacity: 0; transform: translate(0, 0) scale(.35); }
  22% { opacity: .75; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.12); }
}
.reduced #scroll-glint { display: none; }
