:root { --paper: #f2f6e9; --white: #fbfdf2; --ink: #344f3b; --muted: #65775e; --green: #4b7854; --green-light: #deebcb; --peach: #dfad94; --line: #c6d7b4; --shadow: #d5e2c4; --serif: Georgia, 'Yu Mincho', 'Hiragino Mincho ProN', 'Batang', serif; --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', 'Noto Sans JP', 'Malgun Gothic', 'Yu Gothic', Meiryo, sans-serif; }
* { box-sizing: border-box; }
html { background: #dfebd0; color: var(--ink); scroll-padding-bottom: 100px; }
body { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.8; -webkit-tap-highlight-color: transparent; background-image: linear-gradient(#94b88118 1px,transparent 1px),linear-gradient(90deg,#94b88118 1px,transparent 1px); background-size: 24px 24px; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: #dfad9450; }
button { border-radius: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #a55936; outline-offset: 5px; }
/* The content is a programmatic focus destination, not a page-sized control. */
#main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
button { border: 0; background: none; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; display: inline-block; flex-shrink: 0; }
.icon.small { width: 14px; height: 14px; }
.reverse { transform: rotate(180deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 10px 16px; background: var(--white); z-index: 100; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-shell { max-width: 540px; margin: 0 auto; min-height: 100vh; background: var(--paper); box-shadow: 0 0 0 1px #afc698, 6px 6px 0 #bbcf9e45,0 12px 70px #526f3515; position: relative; }
.site-header { min-height: 74px; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 2px solid #a7c091; background: #e7efd9; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; letter-spacing: -.03em; min-width: 0; line-height: 1.5; }
.brand .icon { color: var(--green); }
.language-switch { flex-shrink: 0; display: flex; padding: 3px; border: 1px solid #b2c79c; background: #dbe8c9; }
.language-switch button { min-height: 48px; min-width: 52px; padding: 5px 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; line-height: 1.3; }
.language-switch img { width: 30px; height: 20px; object-fit: contain; border: 1px solid #d7d8cb; }
.language-name { font-size: 8px; letter-spacing: .02em; }
.language-switch button[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 2px #394a3b1c; font-weight: 700; }
.demo-banner { padding: 9px 20px; color: #6c614e; background: #ede6d5; font-size: 10px; display: flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.65; }
.tiny-square { width: 5px; height: 5px; background: #a1865f; flex-shrink: 0; }
main { padding: 0 26px 116px; }
.tab-panel { animation: arrive .3s ease both; padding-top: 36px; }
@keyframes arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.chapter-eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 10px; color: #66775f; letter-spacing: .08em; text-align: center; margin-bottom: 18px; line-height: 1.6; }
.eyebrow-rule { height: 1px; width: 24px; flex-shrink: 0; background: #a8b69b; position: relative; }
.eyebrow-rule:after { content: ''; width: 3px; height: 3px; background: #a8b69b; position: absolute; top: -1px; left: 50%; }
.hero-title, .page-title { font-family: var(--serif); text-align: center; font-weight: 500; font-size: 40px; line-height: 1.36; letter-spacing: -.055em; white-space: pre-line; }
.hero-subtitle { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 28px; }
.hero-photo { position: relative; margin: 0 4px; padding: 8px; background: var(--white); border: 2px solid #8eaa78; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px #b5cda0, 4px 5px 0 4px #d5e3c5; }
.hero-photo:before, .hero-photo:after { content: ''; width: 7px; height: 7px; position: absolute; background: var(--paper); border: 1px solid #abb69d; z-index: 1; }
.hero-photo:before { top: -4px; left: -4px; }.hero-photo:after { bottom: -4px; right: -4px; }
.hero-photo > img { width: 100%; aspect-ratio: 4 / 4.15; object-fit: cover; background: #e4dfcd; }
.photo-stamp { position: absolute; bottom: 19px; left: 50%; transform: translateX(-50%); padding: 4px 12px; background: #fffdf6e6; border: 1px solid #fffdf6; color: #65715c; font-size: 10px; text-align: center; max-width: calc(100% - 30px); line-height: 1.5; }
.frame-flower { color: #bd795f; position: absolute; width: 30px; height: 30px; background: var(--paper); }
.flower-left { bottom: -13px; left: -14px; }.flower-right { top: -15px; right: -13px; color: #809575; width: 25px; height: 25px; }
.hero-names { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 22px 0 36px; font-size: 23px; letter-spacing: .05em; font-family: var(--serif); }
.name-divider { font-family: var(--sans); color: #b4856e; font-size: 16px; }
.person-name { display: inline-block; max-width: 100%; line-height: 1.8; overflow-wrap: anywhere; vertical-align: baseline; }
ruby { ruby-align: center; } rt { font-family: var(--sans); font-size: 9px; letter-spacing: .02em; color: #747963; line-height: 1.8; font-weight: 400; }
.hero-scene { position: relative; }.hero-scene .hero-photo { z-index: 1; }
.scene-garden { position: relative; isolation: isolate; overflow: hidden; }
.hero-garden { height: 144px; margin: -8px -5px 0; background: #d8e8c1 url('assets/scenery/forest-clearing.svg') center 73% / 100% auto; border-bottom: 3px solid #9cbd80; }
.garden-path { position: absolute; width: 70%; height: 62px; bottom: 0; left: 15%; background-color: #e9e3cc; background-image: linear-gradient(#f6f0dd88 2px, transparent 2px), linear-gradient(90deg, #f6f0dd88 2px, transparent 2px); background-size: 18px 18px; clip-path: polygon(38% 0,62% 0,100% 100%,0 100%); }
.garden-fence { position: absolute; bottom: 27px; left: 10px; right: 10px; height: 19px; border-bottom: 4px solid #a3b38d; background: repeating-linear-gradient(90deg, transparent 0 12px, #a3b38d 12px 17px, transparent 17px 27px); z-index: -1; }
.scene-actor { position: absolute; bottom: 10px; width: 64px; height: 90px; object-fit: contain; image-rendering: pixelated; z-index: 2; }
.scene-actor.actor-left { left: calc(50% - 85px); }.scene-actor.actor-right { left: calc(50% + 21px); }
.garden-heart { position: absolute; top: 23px; left: calc(50% - 7px); width: 14px; height: 14px; color: #bf9076; }
.garden-flower { position: absolute; bottom: 13px; width: 5px; height: 18px; background: #889e77; }
.garden-flower:before { content: ''; width: 7px; height: 7px; background: #e0be86; position: absolute; left: -1px; top: -5px; box-shadow: -5px 0 #cc9984, 5px 0 #cc9984, 0 -5px #cc9984, 0 5px #cc9984; }
.garden-flower:after { content: ''; position: absolute; left: -5px; bottom: 5px; width: 5px; height: 5px; background: #a0b187; }
.bloom-one { left: 23px; }.bloom-two { right: 20px; bottom: 25px; }
.greeting-garden { height: 154px; margin: -8px -10px 0; background: linear-gradient(#f2f6e9b0,#dceac37a),url('assets/scenery/forest-clearing.svg') center 73% / 100% auto; border-bottom: 3px solid #a1bc87; }
.greeting-garden .garden-path { height: 51px; }.greeting-garden .scene-actor { bottom: 6px; }
.garden-mountain { position: absolute; width: 130px; height: 90px; background: #dfe5d2; bottom: 29px; z-index: -1; clip-path: polygon(0 100%,0 70%,15% 70%,15% 50%,30% 50%,30% 30%,45% 30%,45% 10%,60% 10%,60% 30%,75% 30%,75% 50%,90% 50%,90% 75%,100% 75%,100% 100%); }
.mountain-one { left: -20px; }.mountain-two { right: -22px; height: 110px; background: #e8e9d9; }
.garden-lantern { position: absolute; bottom: 12px; width: 5px; height: 55px; background: #98a886; }.lantern-left { left: 40px; }.lantern-right { right: 40px; }
.garden-lantern:before { content: ''; width: 17px; height: 21px; background: #dfb397; position: absolute; left: -6px; top: 0; border-top: 3px solid #ad8c6f; border-bottom: 3px solid #ad8c6f; box-shadow: -3px 0 #e0cdb0, 3px 0 #e0cdb0; }
.date-card { text-align: center; border: 2px solid #a4bc8d; padding: 26px 20px 20px; background: #e2edcf; position: relative; box-shadow: inset 0 0 0 3px #edf5df,3px 3px 0 #d1dfbb; }
.date-card:before { content: ''; position: absolute; top: -4px; left: calc(50% - 3px); width: 6px; height: 6px; background: var(--green); }
.small-overline { font-size: 11px; letter-spacing: .07em; color: #5e7257; }
.representative-date { font-family: var(--serif); font-size: clamp(20px,5.45vw,24px); letter-spacing: -.05em; line-height: 1.5; margin: 12px 0; overflow-wrap: anywhere; }
.date-message { font-size: 13px; line-height: 2; word-break: keep-all; overflow-wrap: anywhere; }
.date-footnote { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #cbd1bd; font-size: 10px; color: #687960; line-height: 1.8; }.date-footnote svg { margin-top: 3px; }
.greeting { margin: 52px 0 36px; text-align: center; }.section-kicker { color: #728266; font-size: 10px; letter-spacing: .08em; font-weight: 500; }
.greeting h2 { font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.7; letter-spacing: -.035em; margin: 14px 0 26px; white-space: pre-line; }
.dialogue-box { position: relative; padding: 26px 22px; background: var(--white); border: 2px solid #739564; box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4px #b9d09f, 4px 4px 0 #d3e1bd; text-align: left; }
.dialogue-speaker { position: absolute; top: -14px; left: 17px; padding: 1px 12px; background: var(--green); color: var(--white); font-size: 11px; border: 3px solid var(--paper); line-height: 1.7; }
.dialogue-box p { white-space: pre-line; font-size: 13px; line-height: 2.1; overflow-wrap: anywhere; word-break: keep-all; }.dialogue-cursor { font-size: 8px; position: absolute; bottom: 10px; right: 12px; color: #92a382; animation: glimmer 2s ease infinite; }
@keyframes glimmer { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.family-section { text-align: center; padding: 14px 0 0; }.family-row { padding: 20px 0 14px; }.parent-names { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 7px; row-gap: 9px; font-size: 13px; }.family-relation { font-size: 11px; color: #76816c; margin: 3px 0 7px; }.family-partner { font-family: var(--serif); font-size: 22px; letter-spacing: .04em; }
.chapter-ending { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 25px 0 17px; color: #b7997a; }.chapter-ending span { height: 1px; width: 45px; background: var(--line); }
.text-link { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; min-height: 48px; padding: 10px 14px; width: fit-content; max-width: 100%; margin: 0 auto; text-align: center; border-bottom: 1px solid #b7c2a5; }
.text-link:hover { background: #e9edde; }
.page-title { font-size: 32px; }.page-intro { white-space: pre-line; text-align: center; font-size: 12px; color: var(--muted); margin: 18px 0 24px; line-height: 1.9; overflow-wrap: anywhere; }
.sample-note { text-align: center; padding: 8px 12px; font-size: 10px; background: #eee8d9; color: #766a58; margin-bottom: 27px; line-height: 1.7; }
.story-progress { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 9px; font-size: 10px; color: #527149; background: #e8f0d9f5; border: 1px solid #b3c99d; box-shadow: 2px 2px 0 #d8e4c6; backdrop-filter: blur(6px); margin-bottom: 34px; }
.story-progress-track { height: 3px; flex: 1; background: #d9deca; margin-left: 8px; }.story-progress-track span { display: block; background: #829973; height: 100%; transition: width .25s ease; }
.story-flow { padding: 0; margin: 0; list-style: none; }.story-chapter { display: block; width: 100%; position: relative; scroll-margin-top: 64px; }
.story-chapter-heading { text-align: center; margin: 0 0 20px; }.chapter-number { display: inline-block; font-size: 10px; letter-spacing: .12em; color: #607654; border: 1px solid #b9c5a8; padding: 2px 12px; background: #edf0e1; }
.chapter-title { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.5; margin: 13px 0 8px; overflow-wrap: anywhere; }.chapter-preview { font-size: 11px; color: var(--muted); line-height: 1.8; }
.story-photo { background: var(--white); padding: 7px; border: 2px solid #abc493; box-shadow: 3px 3px 0 #d7e3c5; margin-bottom: 28px; }.story-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-dialogue { padding-top: 25px; }.chapter-in-view .story-photo { animation: arrive .4s ease both; }
.chapter-trail { position: relative; display: flex; justify-content: center; align-items: center; height: 105px; color: #b68e73; }.chapter-trail:before, .chapter-trail:after { content: ''; position: absolute; left: calc(50% - 1px); width: 2px; height: 26px; background: repeating-linear-gradient(to bottom,#bbc6aa 0 4px,transparent 4px 8px); }.chapter-trail:before { top: 13px; }.chapter-trail:after { bottom: 13px; }.story-chapter:last-child .chapter-trail { height: 66px; }.story-chapter:last-child .chapter-trail:after { display: none; }.story-ending, .album-ending { text-align: center; font-size: 11px; font-family: var(--serif); margin-top: 31px; color: #7c846e; }
.album-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 16px; }.album-item { min-width: 0; }.album-open { padding: 6px; background: var(--white); border: 1px solid #d0d1bd; box-shadow: 3px 3px 0 #e1e1d0; width: 100%; text-align: left; position: relative; }.album-open:hover { border-color: var(--green); }.album-open img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: #e3e2d3; }.album-open:after { content: '+'; position: absolute; bottom: 11px; right: 12px; background: #fffdf6eb; width: 24px; height: 24px; text-align: center; line-height: 24px; font-size: 18px; color: var(--green); }.album-caption { font-size: 10px; margin: 9px 4px 0; color: #727964; line-height: 1.8; overflow-wrap: anywhere; }.photo-number { display: block; font-size: 9px; color: #97a087; letter-spacing: .13em; }
.adventure-slot { background: #ebeedf; position: relative; height: 310px; overflow: hidden; border: 2px solid #97a985; box-shadow: inset 0 0 0 4px var(--paper), 4px 4px 0 #d5dcc6; margin: 30px 0 38px; }.pixel-sun { position: absolute; top: 30px; right: 42px; width: 24px; height: 24px; background: #e5c391; box-shadow: 6px 0 #e5c391, -6px 0 #e5c391, 0 6px #e5c391, 0 -6px #e5c391; }.pixel-cloud { position: absolute; height: 9px; width: 42px; background: #fffdf6; box-shadow: 9px -9px #fffdf6, 18px -9px #fffdf6; }.cloud-one { top: 70px; left: 28px; }.cloud-two { top: 113px; right: 65px; width: 27px; }.pixel-grass { height: 58px; background: #b0c69a; border-top: 6px solid #8ba878; position: absolute; bottom: 0; width: 100%; }.pixel-grass:before { content: ''; position: absolute; top: -14px; width: 100%; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 9px, #8ba878 9px 15px, transparent 15px 26px); }.adventure-characters { display: flex; align-items: flex-end; justify-content: center; gap: 12px; position: absolute; bottom: 57px; left: 0; width: 100%; z-index: 1; }.adventure-characters img { width: 72px; height: 101px; image-rendering: pixelated; }.pixel-bloom { color: #b67d67; font-size: 28px; align-self: center; }.coming-label { position: absolute; left: 50%; transform: translateX(-50%); bottom: 15px; font-size: 10px; background: #f7f3e8e6; padding: 3px 12px; white-space: nowrap; z-index: 2; }.adventure-dialogue h2 { font-family: var(--serif); font-size: 21px; line-height: 1.65; margin-bottom: 13px; font-weight: 500; }.adventure-dialogue { margin-bottom: 24px; }
.site-footer { margin: 54px 0 0; padding-top: 21px; text-align: center; border-top: 1px solid var(--line); color: #8b937c; font-size: 10px; }.site-footer .icon { width: 11px; height: 11px; margin: 0 auto 5px; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 540px; z-index: 10; padding: 5px 10px calc(5px + env(safe-area-inset-bottom)); background: #e8f0d9f5; backdrop-filter: blur(10px); border-top: 2px solid #a2bd8a; box-shadow: 0 -3px 0 #f4f9e9,0 -6px 18px #49634c09; }
.bottom-nav button { border: 1px solid transparent; }.bottom-nav button[aria-selected="true"] { border-color: #afc695; background: #dcebc7; box-shadow: inset 0 0 0 2px #eaf4d9; }
.album-open { border-color: #abc493; box-shadow: 3px 3px 0 #d7e3c5; }.chapter-number { background: #e3efcf; border-color: #a9c28e; color: #4f7446; }
.adventure-slot { background: #d6e8bc url('assets/scenery/forest-clearing.svg') center bottom / cover; border-color: #91af76; }.adventure-slot .pixel-cloud,.adventure-slot .pixel-sun { display: none; }.adventure-slot .pixel-grass { background: #afd194; border-color: #8eb677; }.adventure-slot .pixel-grass:before { background: repeating-linear-gradient(90deg,transparent 0 9px,#8eb677 9px 15px,transparent 15px 26px); }
.bottom-nav > div { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 12px 3px 8px; min-height: 82px; color: #858d79; font-size: 10px; line-height: 1.45; min-width: 0; text-align: center; overflow-wrap: anywhere; }.bottom-nav button[aria-selected="true"] { color: var(--green); font-weight: 650; }.bottom-nav button:hover { background: #e9edde70; }.selected-dot { width: 3px; height: 3px; background: transparent; }.bottom-nav button[aria-selected="true"] .selected-dot { background: var(--green); }
.photo-dialog { width: min(100%, 760px); max-width: 100%; height: 100%; max-height: 100dvh; padding: 18px max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); margin: auto; background: #263328; color: #fffdf6; border: 0; overflow-y: auto; }
.photo-dialog[open] { display: flex; flex-direction: column; gap: 14px; }.photo-dialog::backdrop { background: #1c261ce8; }.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; flex-shrink: 0; }.icon-button { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #758370; background: #374739; color: #fffdf6; }.icon-button:hover { background: #4b604d; }.lightbox-media { min-height: 0; flex: 1; display: flex; justify-content: center; align-items: center; }.lightbox-media img { width: 100%; height: 100%; max-height: 68dvh; object-fit: contain; }.lightbox-bottom { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-shrink: 0; }.lightbox-bottom p { text-align: center; line-height: 1.7; font-size: 13px; overflow-wrap: anywhere; }.lightbox-help { text-align: center; color: #c8d0bf; font-size: 10px; flex-shrink: 0; }.modal-open { overflow: hidden; }.photo-dialog :focus-visible { outline-color: #f3bd97; }.noscript-note { padding: 24px; background: var(--white); }
.desktop-decoration { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; color: #a6b391; z-index: 0; }.world-star { position: absolute; left: calc(50% - 420px); top: 20%; font-size: 30px; }.world-flower { position: absolute; right: calc(50% - 440px); top: 64%; font-size: 65px; color: #bdc7a8; }.world-label { position: absolute; right: calc(50% - 385px); top: 28%; font-size: 13px; color: #bdab92; }
@media (max-width: 600px) { .desktop-decoration { display: none; } }
@media (max-width: 375px) { main { padding-left: 21px; padding-right: 21px; }.site-header { padding-left: 17px; padding-right: 17px; }.hero-title { font-size: 36px; }.brand { font-size: 11px; }.language-switch button { min-width: 48px; }.hero-names { font-size: 21px; gap: 10px; }.dialogue-box { padding-left: 18px; padding-right: 18px; }.chapter-title { font-size: 23px; }.bottom-nav button { font-size: 9px; } }
@media (min-width: 800px) { .site-shell { margin-top: 24px; margin-bottom: 24px; }.site-header { padding-top: 18px; padding-bottom: 18px; }main { padding-left: 42px; padding-right: 42px; }.photo-dialog { height: min(94dvh, 1000px); }.hero-title { font-size: 44px; }.hero-photo > img { aspect-ratio: 4 / 3.9; } }
.opening-pending .site-shell, .opening-pending .desktop-decoration { visibility: hidden; }
.opening-active { overflow: hidden; }
.opening-dialog { position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; background: #e4efd3; color: var(--ink); overflow: hidden; }
.opening-dialog[open] { display: block; }.opening-dialog::backdrop { background: transparent; }
.opening-toolbar { position: absolute; top: 0; right: 0; z-index: 12; width: 50%; height: 100%; transform-origin: right center; backface-visibility: hidden; pointer-events: none; }
.opening-skip { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(24px, calc((100vw - 580px) / 2 + 24px)); font-size: 11px; min-height: 44px; padding: 8px 13px; border-bottom: 1px solid #bac5aa; pointer-events: auto; }
.opening-dialog.is-passive-focus .opening-skip:focus { outline: none; }
.opening-stage { width: 100%; height: 100%; padding-top: 84px; background-color: #eaf2dd; background-image: linear-gradient(#a9c9890c 1px,transparent 1px),linear-gradient(90deg,#a9c9890c 1px,transparent 1px),linear-gradient(#eef5e4,#dfedcb); background-size: 24px 24px,24px 24px,100% 100%; }
.opening-content { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; padding: 12px 0 max(35px, env(safe-area-inset-bottom)); }
.opening-content .chapter-eyebrow { font-size: 10px; margin: 0 22px 18px; }
.opening-content h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.6; letter-spacing: -.04em; white-space: pre-line; text-align: center; padding: 0 24px; }
.opening-world { position: relative; width: min(100%, 540px); height: 306px; overflow: hidden; margin-top: 18px; flex-shrink: 0; background: #d6e8bc url('assets/scenery/forest-clearing.svg') center bottom / cover; }
.forest-sunbeam { position: absolute; top: 0; left: 55%; width: 110px; height: 170px; background: linear-gradient(#fff8cd35,transparent); transform: skewX(-18deg); pointer-events: none; }
.forest-mote { position: absolute; width: 3px; height: 3px; background: #fff4c7; box-shadow: 0 0 8px #ffffe680; animation: forest-drift 3.4s ease-in-out infinite alternate; }.mote-one { left: 29%; top: 43%; }.mote-two { right: 25%; top: 28%; animation-delay: -.9s; }.mote-three { right: 17%; top: 57%; animation-delay: -1.7s; }@keyframes forest-drift { from { transform: translateY(0); opacity: .4; } to { transform: translateY(-8px); opacity: .8; } }
.opening-walker { position: absolute; bottom: 71px; width: 64px; height: 90px; z-index: 2; }.opening-walker img { width: 64px; height: 90px; object-fit: contain; image-rendering: pixelated; }
.walker-left { left: calc(50% - 72px); transform: translateX(-112px); }.walker-right { left: calc(50% + 8px); transform: translateX(112px); }
.opening-dialog.is-playing .walker-left { animation: meet-left 1.65s steps(14, end) .15s both; }.opening-dialog.is-playing .walker-right { animation: meet-right 1.65s steps(14, end) .15s both; }
.opening-dialog.is-playing .opening-walker img { animation: walking .12s steps(2, end) .15s 14; }
@keyframes meet-left { from { transform: translateX(-112px); } to { transform: translateX(0); } }@keyframes meet-right { from { transform: translateX(112px); } to { transform: translateX(0); } }@keyframes walking { 50% { transform: translateY(-3px); } }
.opening-heart { width: 21px; height: 21px; position: absolute; left: calc(50% - 10.5px); bottom: 170px; color: #bc8a70; opacity: 0; z-index: 2; }
.opening-dialog.is-playing .opening-heart { animation: meeting-heart .35s ease 1.85s both; }@keyframes meeting-heart { from { opacity: 0; transform: translateY(5px) scale(.6); } to { opacity: 1; transform: translateY(0) scale(1); } }
.opening-description { font-size: 12px; text-align: center; color: #66765d; margin: 22px 24px 17px; }
.opening-dialogue { width: calc(100% - 48px); max-width: 350px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 17px; min-height: 52px; background: var(--white); border: 2px solid #7e936f; box-shadow: inset 0 0 0 2px var(--white),inset 0 0 0 3px #bec9ad,3px 3px 0 #d6dec7; font-size: 11px; line-height: 1.8; }
.opening-dialogue > span:last-child { font-size: 8px; color: #9bad88; }
.opening-replay { font-size: 10px; color: #5c7e50; margin-top: 12px; }
.opening-transition { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; perspective: clamp(420px, 100vw, 1400px); perspective-origin: center; }
.opening-doors { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
.opening-door { position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; backface-visibility: hidden; will-change: transform; }
.opening-door--left { left: 0; transform-origin: left center; }.opening-door--right { right: 0; transform-origin: right center; }
.opening-door .opening-stage { position: absolute; top: 0; padding-top: 84px; max-width: none; pointer-events: none; }
.opening-door:before { content: ''; position: absolute; inset: 0; z-index: 1; opacity: 0; background: linear-gradient(90deg, transparent 15%, #36502c40); pointer-events: none; }
.opening-door--right:before { background: linear-gradient(-90deg, transparent 15%, #36502c40); }
.opening-door:after { content: ''; position: absolute; top: 0; z-index: 2; width: 4px; height: 100%; background: linear-gradient(90deg, #82996c, #fffbe3 65%, #fff); box-shadow: 0 0 12px 3px #fffef180; }.opening-door--left:after { right: 0; }.opening-door--right:after { left: 0; background: linear-gradient(-90deg, #82996c, #fffbe3 65%, #fff); }
.opening-light { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: #fff; overflow: hidden; }
.opening-light:before { content: ''; position: absolute; top: -10%; left: 50%; height: 120%; width: 8px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 28px 16px #fffff5,0 0 80px 36px #fff6ce8c; }
.opening-whiteout { position: absolute; inset: 0; z-index: 20; pointer-events: none; background: #fff; opacity: 0; }
.opening-dialog.is-splitting #opening-stage { visibility: hidden; }.opening-dialog.is-splitting .opening-door--left { animation: door-open-left 1.45s cubic-bezier(.45,0,.3,1) forwards; }.opening-dialog.is-splitting .opening-door--right { animation: door-open-right 1.45s cubic-bezier(.45,0,.3,1) forwards; }
.opening-dialog.is-splitting .opening-door:before { animation: door-shade 1.45s ease forwards; }
.opening-dialog.is-splitting .opening-toolbar { animation: door-open-right 1.45s cubic-bezier(.45,0,.3,1) forwards, opening-controls-out .65s ease forwards; }
.opening-dialog.is-splitting .opening-light { animation: light-arrives 1.45s ease forwards; }.opening-dialog.is-splitting .opening-light:before { animation: light-spreads 1.45s cubic-bezier(.3,0,.2,1) forwards; }
.opening-dialog.is-splitting .opening-whiteout { animation: white-rises 1.45s ease forwards; }
.opening-doors:after { content: ''; position: absolute; top: 0; left: 50%; width: 4px; height: 100%; transform: translateX(-50%); background: linear-gradient(90deg,transparent,#fffff4 30%,#fff 50%,#fffff4 70%,transparent); opacity: 0; filter: blur(10px); pointer-events: none; }
.opening-dialog.is-splitting .opening-doors:after { animation: seam-bloom 1.45s ease forwards; }
@keyframes seam-bloom { 0% { width: 4px; opacity: 0; } 40% { width: 6px; opacity: .2; } 65% { width: 40%; opacity: .4; } 100% { width: 150%; opacity: 1; } }
.opening-dialog.is-whiteout .opening-whiteout { animation: none; opacity: 1; }
.opening-dialog.is-revealing { background: transparent; }.opening-dialog.is-revealing .opening-whiteout { animation: white-recedes 1.05s cubic-bezier(.3,0,.5,1) forwards; }.opening-dialog.is-revealing .opening-light { opacity: 0; animation: none; }.opening-dialog.is-revealing .opening-doors { visibility: hidden; }.opening-dialog.is-revealing .opening-toolbar { visibility: hidden; }
/* Keep the hinges fixed: the inner edges rotate toward the viewer without sliding. */
@keyframes door-open-left { 0% { transform: rotateY(0); } 65% { transform: rotateY(-68deg); } 100% { transform: rotateY(-102deg); } }@keyframes door-open-right { 0% { transform: rotateY(0); } 65% { transform: rotateY(68deg); } 100% { transform: rotateY(102deg); } }
@keyframes door-shade { 0% { opacity: 0; } 40% { opacity: .85; } 100% { opacity: 1; } }
@keyframes opening-controls-out { 0% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes light-arrives { 0% { opacity: 0; } 12% { opacity: .65; } 30%,100% { opacity: 1; } }@keyframes light-spreads { 0% { width: 3px; box-shadow: 0 0 15px 5px #fffef9; } 45% { width: 10%; } 100% { width: 110%; box-shadow: 0 0 80px 40px #fff; } }
@keyframes white-rises { 0%,58% { opacity: 0; } 100% { opacity: 1; } }@keyframes white-recedes { 0%,10% { opacity: 1; } 100% { opacity: 0; } }
@media (min-width: 800px) { .opening-content h2 { font-size: 42px; }.opening-world { height: 320px; } }
@media (max-height: 680px) { .opening-content { padding-bottom: 20px; }.opening-content h2 { font-size: 27px; }.opening-content .chapter-eyebrow { margin-bottom: 8px; }.opening-world { height: 220px; margin-top: 8px; }.opening-description { margin-top: 12px; margin-bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
