/*
 * 物語と遊び方のセクション。
 * 写真、手紙、スクロール連動シーンを定義する。
 */
/* Story */
.story { overflow: clip; background: var(--paper); }
.story-layout { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: clamp(52px, 8vw, 112px); align-items: center; }
.polaroid { position: relative; padding: 18px 18px 58px; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper-light); box-shadow: var(--solid-shadow); transform: rotate(-2deg); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 2px solid var(--ink); border-radius: 12px; }
.polaroid figcaption { position: absolute; right: 18px; bottom: 13px; left: 18px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--latin); font-size: .68rem; letter-spacing: .08em; }
.polaroid .tape { top: -14px; left: 50%; transform: translateX(-50%) rotate(4deg); }
.letter-wrap { position: relative; }
.letter { position: relative; margin-top: 38px; padding: clamp(30px, 4vw, 50px); border: 3px solid var(--ink); border-radius: 12px; background: var(--paper-light); box-shadow: 6px 6px 0 var(--ink); transform: rotate(.6deg); }
.letter::before { position: absolute; top: 22px; right: 24px; width: 70px; height: 70px; display: grid; border: 4px double var(--red); border-radius: 999px; place-items: center; color: var(--red); font-family: var(--latin); font-size: .63rem; line-height: 1.2; text-align: center; content: "FROM\A X"; white-space: pre; transform: rotate(12deg); }
.letter-label { color: var(--red); font-family: var(--display); font-size: 1.12rem; }
.letter-copy { max-width: 37em; margin-top: 25px; display: grid; gap: 18px; }
.letter-copy p { line-height: 2.05; }
.success-stamp { position: absolute; right: -34px; bottom: -42px; width: 128px; height: 128px; display: grid; border: 5px double var(--red); border-radius: 999px; place-items: center; color: var(--red); background: var(--paper); font-family: var(--latin); text-align: center; transform: rotate(-10deg); }
.success-stamp strong { display: block; font-size: 2.3rem; line-height: .9; }
.success-stamp span { display: block; margin-top: 8px; font-family: var(--body); font-size: .63rem; font-weight: 700; line-height: 1.3; }
.secret-tease { margin-top: 38px; padding: 18px 22px; border: 2px dashed var(--ink); border-radius: 12px; background: var(--yellow); font-weight: 700; text-align: center; transform: rotate(-.6deg); }

/* How to play / R02 */
.how { overflow: clip; border-block: 3px solid var(--ink); background: var(--paper-deep); }
.how-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 8vw, 100px); align-items: end; margin-bottom: 58px; }
.play-pin { position: relative; }
.play-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: stretch; }
.play-nav { display: grid; align-content: center; gap: 8px; }
.play-nav-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 12px 10px; border-bottom: 2px dashed var(--line); color: var(--ink-soft); transition: transform .35s var(--ease); }
.play-nav-item b { font-family: var(--latin); font-size: 1.45rem; }
.play-nav-item span { font-size: .82rem; font-weight: 700; }
.play-nav-item.is-active { color: var(--red); transform: translateX(8px); }
.play-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.play-scene { position: relative; min-height: 440px; display: grid; grid-template-columns: minmax(210px, .9fr) minmax(240px, 1.1fr); gap: 30px; padding: clamp(24px, 4vw, 48px); align-items: center; overflow: hidden; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper-light); box-shadow: 6px 6px 0 var(--ink); }
.play-scene:nth-child(2) { background: #edf2ff; }
.play-scene:nth-child(3) { background: #fff0dc; }
.play-scene:nth-child(4) { background: #fff7cb; }
.scene-art { position: relative; }
.scene-art svg { width: 100%; max-height: 330px; }
.scene-art .line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.scene-art .paper-fill { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.scene-art .red-fill { fill: var(--red); stroke: var(--ink); stroke-width: 4; }
.scene-art .yellow-fill { fill: var(--yellow); stroke: var(--ink); stroke-width: 4; }
.scene-art .blue-fill { fill: var(--blue); stroke: var(--ink); stroke-width: 4; }
.scene-copy .scene-number { font-family: var(--latin); font-size: .75rem; letter-spacing: .12em; }
.scene-copy h3 { margin-top: 10px; font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 400; line-height: 1.45; }
.scene-copy p { margin-top: 15px; color: var(--ink-soft); }
.scene-chip { display: inline-flex; margin-top: 20px; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); font-size: .76rem; font-weight: 700; line-height: 1.3; }
html.motion-ok .play-scenes { position: relative; min-height: 520px; display: block; }
html.motion-ok .play-scene { position: absolute; inset: 0; min-height: 520px; opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(28px) scale(.98); }
html.motion-ok .play-scene:first-child { opacity: 1; clip-path: inset(0); transform: translateY(0) scale(1); }
.rules-board { margin-top: 68px; padding: clamp(28px, 4vw, 46px); border: 3px solid var(--ink); border-radius: 12px; background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--red); }
.rules-board h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 400; }
.rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin-top: 20px; counter-reset: rules; }
.rule-list li { position: relative; min-height: 76px; padding: 18px 0 18px 54px; border-top: 1px dashed rgba(255,246,231,.32); counter-increment: rules; }
.rule-list li::before { position: absolute; top: 15px; left: 0; width: 36px; height: 36px; display: grid; border-radius: 999px; place-items: center; background: var(--yellow); color: var(--ink); font-family: var(--latin); content: counter(rules, decimal-leading-zero); }
