@font-face{font-family:Fredoka;src:url('assets/fredoka-400.woff2')}@font-face{font-family:Fredoka;src:url('assets/fredoka-600.woff2');font-weight:600}
:root{--ink:#203d51;--cream:#fff8e7;--wood:#bc814d;--lavender:#a28dc4;--shadow:0 7px 18px #27445525;--focus:#294c7c;color-scheme:light;font-family:Fredoka,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:#cce4ec;overflow:hidden}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible{outline:4px solid var(--focus);outline-offset:3px}button:disabled{cursor:default;opacity:.48}button:active:not(:disabled){transform:translateY(2px) scale(.98)}button img{pointer-events:none;user-select:none}button,svg{flex-shrink:0}svg{width:32px;height:32px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}::selection{background:#c8b6e4} [hidden]{display:none!important}#game{height:100dvh;min-height:520px;position:relative;background:url('assets/world-landscape.webp') center/cover}#opening{position:absolute;inset:0}#opening picture,#opening picture img{width:100%;height:100%;object-fit:cover;display:block}#opening .wm-story-title{font-size:clamp(24px,3.4vw,48px);max-width:780px;padding:14px 25px;top:5%;color:var(--ink)}.rune{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));width:46px;height:46px;object-fit:contain;z-index:500;pointer-events:none}.source-controls{position:absolute;top:10px;left:10px;height:56px;display:flex}.source-controls button{width:56px;height:56px}.topline{height:91px;padding:18px 25px 10px 330px;display:flex;justify-content:space-between;align-items:center;gap:20px}.topline h1{font-size:25px;margin:0;font-weight:600;text-shadow:0 2px 1px #fff9}.topline #stars{display:flex;gap:4px}.star{width:31px;height:31px;object-fit:contain}.guide{height:82px;display:flex;justify-content:center;align-items:center;gap:12px;max-width:840px;margin:auto}.guide button{border:0;background:transparent;width:80px;height:80px;padding:0}.guide img{width:100%;height:100%;object-fit:contain}.guide>div{background:var(--cream);padding:12px 22px;border-radius:24px;min-width:300px;box-shadow:var(--shadow);position:relative}.guide h2{margin:0;font-size:24px;font-weight:600}.guide p{font-size:16px;margin:5px 0 0;min-height:18px}.play-area{height:calc(100dvh - 281px);min-height:260px;max-height:620px;max-width:1150px;margin:auto;display:flex;align-items:center;justify-content:center;gap:20px;padding:10px 24px}.resident{width:22%;max-width:245px;align-self:center;text-align:center;position:relative}.resident>img{width:100%;height:220px;object-fit:contain;filter:drop-shadow(0 8px 8px #29474628)}.resident>span{display:block;font-size:26px;font-weight:600;text-shadow:0 2px #fff}.resident #friends{display:flex;justify-content:center;margin-top:10px}.resident #friends img{height:58px;width:58px;object-fit:contain}.play-area #board{width:min(64vw,700px);height:100%;max-height:530px;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px}.actions{height:100px;display:flex;justify-content:center;align-items:center;gap:15px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.art-button{border:0;padding:0;background:none;width:76px;height:76px;filter:drop-shadow(0 4px 3px #4a351d35)}.art-button img{width:100%;height:100%;object-fit:contain}.small-action{border:0;background:var(--cream);border-radius:50%;width:56px;height:56px;box-shadow:var(--shadow);display:grid;place-items:center}.small-action svg{width:27px;height:27px}.clues{display:flex;align-items:center;justify-content:center;gap:10px}.clue{position:relative;display:inline-flex;align-items:center;justify-content:center;background:#fffdf3;border-radius:14px;width:62px;height:62px;box-shadow:0 3px 7px #30506520}.clue svg{width:39px;height:39px}.clue.no-roof:after{content:'';position:absolute;width:85%;height:4px;background:#46586a;transform:rotate(-45deg)}.portrait-clue{width:72px;height:60px;overflow:hidden;border-radius:10px}.portrait-clue img{width:130px;max-width:none;transform:translate(-30px,-4px)}.envelope{background:#fff6dc;padding:14px 25px;border-radius:12px;box-shadow:0 9px 18px #6e4e3328;border-bottom:8px solid #e7d7b3;position:relative}.options{display:flex;justify-content:center;gap:16px;width:100%;align-items:stretch}.mailbox{border:0;background:#fff8e7ed;border-radius:22px;padding:12px;box-shadow:var(--shadow);width:29%;max-width:185px;min-height:190px;position:relative}.mailbox>img{width:100%;height:135px;object-fit:contain}.mailbox .clues{gap:4px}.mailbox .clue{width:36px;height:36px;background:none;box-shadow:none}.mailbox .clue svg{width:28px;height:28px}.mailbox .bird-name{font-size:19px;display:block;margin-top:5px}.selected{outline:4px solid #7c64a5;outline-offset:3px;background:#eee3fa!important}.chosen-stamp{position:absolute;right:5px;top:5px;width:35px;height:35px;border-radius:50%;background:#e5d1ff;display:grid;place-items:center}.chosen-stamp svg{width:23px}.letters{display:flex;justify-content:center;gap:12px}.letter{border:0;padding:10px;background:#fff2d5;border-radius:12px;min-width:85px;min-height:68px;box-shadow:var(--shadow)}.letter .clue{width:30px;height:35px;background:transparent;box-shadow:none}.letter .clue svg{width:28px;height:28px}.letter.assigned{background:#dedbb8}.letter .mini-bird{width:40px;height:40px;object-fit:contain}.board-note{font-size:16px;text-align:center;margin:0;background:#fff8e7dd;padding:6px 15px;border-radius:12px}.flight{position:relative;width:min(100%,460px);height:auto;aspect-ratio:1;border-radius:28px;background:#effaffdf;box-shadow:var(--shadow)}.flight>svg{position:absolute;inset:0;width:100%;height:100%;stroke-width:1;overflow:visible}.path-line{stroke:#8babbc;stroke-width:1.2;stroke-dasharray:2 2}.path-line.active{stroke:#8065a4;stroke-width:2;stroke-dasharray:none}.node{position:absolute;transform:translate(-50%,-50%);width:59px;height:59px;border-radius:50%;border:0;display:grid;place-items:center;background:#fffaf0;box-shadow:0 4px 8px #234b6628}.node:active:not(:disabled){transform:translate(-50%,-50%) scale(.95)}.node img{width:65px;height:65px;object-fit:contain}.node.cloud{background:#cad7e1;color:#657b8a}.node.goal{background:#efe2be}.node.gate{border:3px solid #a88c62}.node.sign{background:#d4ad79;color:#46321e;outline:2px solid #f9ead5;outline-offset:2px}.node.sign svg{width:35px;height:35px}.node.start{background:transparent;box-shadow:none}.flyer{position:absolute;width:78px;height:78px;object-fit:contain;z-index:4;transform:translate(-50%,-50%);transition:left .48s ease-in-out,top .48s ease-in-out;pointer-events:none}.flight.running .node.start img{visibility:hidden}.node.visited{background:#edddad}.slider-wrap{height:100%;max-height:430px;aspect-ratio:1;position:relative;padding:13px;background:#b8804f;border-radius:22px;box-shadow:0 10px 20px #49331c3a}.slider{width:100%;height:100%;position:relative;border-radius:12px;background-color:#f5e2bf;background-image:linear-gradient(#caad7b55 1px,transparent 1px),linear-gradient(90deg,#caad7b55 1px,transparent 1px);background-size:25% 25%;overflow:visible}.piece{position:absolute;border:0;border-radius:12px;box-shadow:inset 0 3px #fff8,0 4px 6px #59412240;background:#dba66e;color:#664520;display:grid;place-items:center;touch-action:none}.piece.v{background:#adc4c3;color:#365864}.piece:nth-child(3){background:#c3abcf;color:#5f4872}.piece.target{background:#eec0a8;color:#823d36}.piece>svg{width:40px;height:40px}.piece.active-piece{outline:4px solid #69518b;outline-offset:-4px}.exit{position:absolute;right:-26px;width:28px;height:25%;display:grid;place-items:center;color:#4d394d}.move-tools{display:flex;gap:12px;justify-content:center}.move-tools button{width:56px;height:56px;border:0;border-radius:50%;background:var(--cream);box-shadow:var(--shadow)}.seat-area{width:100%;display:flex;gap:12px;justify-content:center;align-items:end;padding-top:20px}.seat{width:30%;max-width:150px;height:150px;background:#fff8e4d9;border:0;border-bottom:12px solid #b98555;border-radius:25px 25px 15px 15px;position:relative;box-shadow:var(--shadow)}.seat>img{width:100%;height:115px;object-fit:contain}.seat .roof{position:absolute;top:-45px;left:5%;width:90%;height:60px;color:#835674;stroke-width:3;filter:drop-shadow(0 4px 1px #4c364522)}.seat .empty-seat{opacity:.35;width:40px;height:40px}.bird-bank{display:flex;justify-content:center;gap:12px}.bird-bank button{width:86px;height:86px;padding:3px;background:#fff8e7;border:0;border-radius:18px;box-shadow:var(--shadow)}.bird-bank img{width:100%;height:100%;object-fit:contain}.rule{display:flex;align-items:center;gap:7px;padding:5px 12px;border-radius:15px;background:#fff9e9;box-shadow:var(--shadow)}.rule img{width:42px;height:42px;object-fit:contain}.rules{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-bottom:30px}.rules svg{width:28px;height:28px}.story-row{display:flex;gap:12px;justify-content:center;width:100%}.story-card{width:30%;max-width:200px;aspect-ratio:1;border:0;padding:0;border-radius:16px;background:var(--cream);box-shadow:var(--shadow);position:relative;overflow:hidden}.story-card img{width:100%;height:100%;object-fit:cover}.story-card.used{opacity:.45}.story-card .zoom{position:absolute;right:5px;bottom:5px;display:grid;place-items:center;width:30px;height:30px;background:#fff8e7eb;border-radius:50%}.zoom svg{width:22px;height:22px}.story-slots{display:flex;gap:10px;width:100%;justify-content:center;align-items:center}.story-slot{width:29%;max-width:180px;aspect-ratio:1;border:2px dashed #698799;border-radius:16px;background:#eaf7f9cf;display:grid;place-items:center;overflow:hidden;padding:0}.story-slot img{width:100%;height:100%;object-fit:cover}.story-slot svg{opacity:.6}.story-context{display:flex;align-items:center;gap:12px;justify-content:center}.story-context img{height:100px;width:100px;object-fit:cover;border-radius:12px}.story-context .missing{width:65px;height:65px;background:#fff7df;border-radius:16px;display:grid;place-items:center}.success #board{animation:settle .5s ease-out}.success .guide>div{background:#fff1c5}.success .star:last-child{animation:settle .5s ease-out}dialog{border:0;border-radius:28px;background:var(--cream);color:var(--ink);padding:25px;max-width:min(700px,92vw);max-height:90dvh;box-shadow:0 18px 55px #18334150}dialog::backdrop{background:#19384b77}dialog h2{font-size:30px;text-align:center;margin:0 0 15px}dialog p{text-align:center;max-width:520px;line-height:1.45;margin:10px auto 20px}dialog .panel-buttons{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.text-button{background:#d8c7e8;border:0;min-height:56px;padding:12px 22px;border-radius:16px;font-size:18px;box-shadow:0 4px 9px #33244120}.chapter-menu{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:15px 0}.chapter-menu button{border:0;border-radius:18px;background:#edf4ed;min-height:140px;font-size:17px;padding:8px}.chapter-menu img{width:85px;height:85px;object-fit:contain;display:block;margin:auto}.chapter-menu small{display:block;font-size:13px;margin-top:5px}.reward-art{width:260px;height:220px;object-fit:contain;display:block;margin:auto}.cast{display:flex;flex-wrap:wrap;justify-content:center;max-width:600px;margin:auto}.cast button{background:none;border:0;width:82px;height:92px;padding:0}.cast img{width:100%;height:100%;object-fit:contain}.cast button:active{animation:wave .4s}.demo-stage{text-align:center;min-height:180px;display:flex;align-items:center;justify-content:center;gap:20px}.demo-stage>img{width:120px;height:120px;object-fit:contain}.demo-stage .demo-hand{outline:5px solid #9271b5;outline-offset:6px}.demo-stage .art-button{width:80px;height:80px}.zoom-image{width:100%;max-height:62dvh;object-fit:contain;border-radius:15px}#board button:hover:not(:disabled){filter:brightness(1.04)}@keyframes settle{from{transform:scale(.98)}to{transform:scale(1)}}@keyframes wave{50%{transform:rotate(6deg)}}
@media(orientation:portrait){#game{background-image:url('assets/world-portrait.webp')}.topline{height:104px;padding:72px 15px 4px;gap:8px}.topline h1{font-size:20px}.star{width:24px;height:24px}.guide{height:79px;margin:0 12px;gap:5px}.guide button{width:60px;height:65px}.guide>div{min-width:0;flex:1;padding:9px 12px;border-radius:19px}.guide h2{font-size:19px}.guide p{font-size:13px;min-height:16px}.play-area{height:calc(100dvh - 274px);max-height:none;padding:6px 12px;gap:0;position:relative;min-height:240px}.resident{position:absolute;right:8px;top:-103px;width:65px;display:none}.play-area #board{width:100%;height:100%;gap:10px;max-height:none}.actions{height:86px;padding-bottom:8px;gap:12px}.art-button{width:65px;height:65px}.rune{width:34px;height:34px;bottom:11px;left:8px}.small-action{width:56px;height:56px}.mailbox{width:31%;min-height:145px;padding:7px;border-radius:18px}.mailbox>img{height:100px}.mailbox .bird-name{font-size:16px}.mailbox .clue{width:28px;height:28px}.options{gap:9px}.envelope{padding:9px 20px}.clue{width:49px;height:49px}.clue svg{width:33px;height:33px}.letters{gap:8px}.letter{min-width:76px;padding:7px;min-height:56px}.flight{height:auto;width:auto;max-width:100%;max-height:100%;aspect-ratio:1;flex:1;min-height:260px}.node{width:48px;height:48px}.node.sign{width:56px;height:56px}.node img{width:53px;height:53px}.node svg{width:29px;height:29px}.flyer{width:64px;height:64px}.slider-wrap{height:calc(100% - 66px);max-width:calc(100% - 20px);max-height:336px;padding:10px;border-radius:18px}.piece{border-radius:9px}.piece>svg{width:29px;height:29px}.exit{right:-22px;width:24px}.move-tools{gap:20px}.move-tools button{width:56px;height:56px}.seat-area{gap:8px;padding-top:15px}.seat{height:112px;border-bottom-width:9px}.seat>img{height:84px}.seat .roof{top:-34px;height:43px}.rules{gap:6px;margin-bottom:8px}.rule{padding:3px 6px;gap:2px}.rule img{width:35px;height:35px}.rule svg{width:23px;height:23px}.bird-bank{gap:12px}.bird-bank button{width:70px;height:70px}.story-row,.story-slots{gap:8px}.story-card{width:31%;border-radius:12px}.story-slot{width:31%;border-radius:12px}.story-context img{width:75px;height:75px}.story-context{gap:9px}.story-context .missing{width:48px;height:48px}.board-note{font-size:13px;padding:5px 10px}.chapter-menu{grid-template-columns:repeat(2,1fr);gap:10px}.chapter-menu button{min-height:100px;font-size:16px}.chapter-menu img{height:58px;width:65px}dialog{padding:19px}dialog h2{font-size:25px}.cast button{width:65px;height:70px}.reward-art{height:170px;width:220px}#opening .wm-story-title{font-size:27px;padding:12px 17px;top:4%;width:88%}}
@media(max-height:680px) and (orientation:landscape){.topline{height:77px}.guide{height:67px}.guide h2{font-size:21px}.play-area{height:calc(100dvh - 227px)}.actions{height:78px}.resident>img{height:150px}.resident #friends img{height:44px;width:44px}.art-button{height:64px;width:64px}.mailbox{min-height:140px}.mailbox>img{height:95px}.flight{height:100%;width:auto}.slider-wrap{height:100%}.move-tools{position:absolute;right:-65px;flex-direction:column}.story-context img{height:60px;width:60px}}
.chapter-portrait{display:none}.panel-sound{display:flex;align-items:center;justify-content:center;gap:8px;margin:16px auto 0;border:0;background:transparent;min-width:100px;min-height:48px;font-size:15px}.panel-sound svg{width:20px;height:20px}.demo-stage .envelope>img{width:110px;height:110px;object-fit:contain}.demo-stage .mailbox{min-width:85px;min-height:130px}.demo-stage .mailbox>img{height:100px}
@media(orientation:portrait){.topline h1{display:flex;align-items:center;gap:4px;font-size:18px;line-height:1.05;min-width:0}.chapter-portrait{display:block;width:40px;height:40px;object-fit:contain}.demo-stage{gap:9px}.demo-stage .envelope{padding:5px}.demo-stage .envelope>img{width:66px;height:66px}.demo-stage .mailbox{padding:3px;min-width:65px;min-height:95px}.demo-stage .mailbox>img{height:85px}.topline #stars{gap:1px}.star{width:23px;height:23px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.flight>svg{overflow:visible}.flight>svg{aspect-ratio:1}@media(orientation:portrait){.flight{flex:none;width:min(100%,calc(100dvh - 300px));height:auto;min-height:0;aspect-ratio:1}}

.source-controls{visibility:hidden}
