@font-face{font-family:DoolsPixel;src:url('assets/v13/dools-pixel.woff') format('woff');font-display:swap}
#game,#notebook,#choose,#challenge,.rpg-page{--pixel-ink:#f5efd7;--pixel-bg:#142934;--pixel-gold:#f7c975}
#talk,#notebook,#choose,.rpg-page .quest-panel{border:4px solid #d5c28c;border-radius:0;box-shadow:0 0 0 3px #253a48,0 0 0 6px #72898b,8px 12px 0 #07131ba8;background:#142934;color:#f5efd7}
#talk h2,#notebook h2,#choose h2,.rpg-page h2,#speaker,.gift-title,#roomName{font-family:DoolsPixel,monospace!important;font-weight:normal;line-height:1.6;letter-spacing:0}
#dialogText{font-family:DoolsPixel,monospace;font-size:20px;line-height:1.6;min-height:130px;color:#f5efd7}
#speechTailPath{fill:#142934;stroke:#d5c28c;stroke-width:4}
#talk .eyebrow,#talk .speech-nav{color:#f7c975}
#talk button,#notebook button,#choose button,.rpg-page button,#game .hud button,.room-action,.room-exit{border-radius:0;box-shadow:inset -3px -3px #071b25,inset 3px 3px #74948f;border:2px solid #7e9d99;min-height:44px;background:#294853;color:#fff3d3;font-size:16px}
#dialogActions button:first-child,#validateQuest,#nextQuest,#bag,.gift-close{background:#f7c975!important;color:#172c37!important;border:3px solid #fff0b9!important;font-weight:800;box-shadow:3px 4px 0 #071b25!important;padding:12px 20px!important}
#validateQuest::before{content:'◆ ';}#questFeedback:not(:empty){padding:18px;border:2px solid #f7c975;font-weight:700;color:#f7e1a0;background:#173c39}
.rpg-page .rpg-row{grid-template-columns:minmax(86px,130px) repeat(16,minmax(0,1fr))!important;min-width:0!important}.rpg-grid-scroll{overflow:visible!important;max-height:none!important}#rpgGrid{min-width:0!important}
.rpg-page .rpg-cell{position:relative;padding:0!important;min-width:0;touch-action:none}.rpg-page .rpg-cell.selected,.mini-cell.selected{outline:2px solid #ffcc70!important;outline-offset:-2px;z-index:1}
.duration-handle{position:absolute;right:0;top:0;bottom:0;display:grid;place-items:center;width:12px;background:#eec476;color:#142934;cursor:ew-resize;font-size:12px}
.rpg-page .note-tools{position:sticky;bottom:0;padding:14px;background:#142934;z-index:5;border:2px solid #7e9d99}.rpg-page .note-tools label{color:#f5efd7}.rpg-page .note-tools input[type=range]{width:150px}.rpg-page #applyNote{display:none!important}
#inventory{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}#inventory article{min-height:0!important;border:2px solid #587881!important;border-radius:0!important;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:20px!important;background:#1c3640}#inventory article::after{display:none}#inventory img{width:80px;height:80px;float:none;margin:0;object-fit:contain;image-rendering:pixelated}#inventory p{margin:0;font-size:16px}.locked-item{opacity:.48}#notebook h2{font-size:24px}#terms article{border-radius:0}#terms a{display:inline-block;padding:10px 0;color:#ffdc8d;font-weight:700}#party{display:flex;gap:10px;flex-wrap:wrap}#party p{flex:1 1 200px;border-radius:0;font-size:15px}
.gift-dialog{max-width:560px;text-align:center;border:4px solid #ffd581;border-radius:0;background:radial-gradient(circle,#47614e,#152c38 70%);color:#fff3d7;overflow:hidden}.gift-dialog img{width:130px;height:130px;image-rendering:pixelated;filter:drop-shadow(0 0 18px #ffd780);animation:gift-reveal .7s steps(7) both}.gift-dialog::backdrop{background:#05141ccf}.gift-dialog .gift-title{font-size:26px}.gift-dialog a{color:#ffdc8d}.gift-rays{position:absolute;inset:0;pointer-events:none;background:repeating-conic-gradient(from 0deg at 50% 36%,#ffdd8715 0deg 10deg,transparent 10deg 30deg);z-index:-1}@keyframes gift-reveal{from{transform:translateY(55px) scale(.4);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
#roomObjects{position:absolute;inset:0;pointer-events:none;z-index:5}.room-action{position:absolute;pointer-events:auto;display:grid;justify-items:center;transform:translate(-50%,-50%);padding:6px;font-size:12px;max-width:135px}.room-action img{width:38px;height:38px;image-rendering:pixelated}.room-action.collected{opacity:.55}.room-exit{position:absolute;left:14px;bottom:14px;z-index:7;padding:8px 14px;pointer-events:auto}.scene-interior #places{display:none}.scene-interior #villagers .npc{display:none}.scene-interior #villagers .npc.speaking{display:block;left:62%!important;top:58%!important}.scene-interior .world-label{display:none}#roomName{position:absolute;left:16px;top:14px;background:#142934e8;border:2px solid #9db8a0;padding:8px 14px;font-size:16px;z-index:6;pointer-events:none}.scene-transition #scenery{animation:room-arrive .4s steps(5)}@keyframes room-arrive{from{opacity:.15}to{opacity:1}}
#introCaption{position:absolute;left:10%;right:10%;bottom:8%;z-index:8;background:#142934eb;border:3px solid #d5c28c;padding:16px;font:18px/1.5 DoolsPixel,monospace;text-align:center}.intro-running #player{z-index:7}.intro-running #places,.intro-running #villagers,.intro-running #partner,.intro-running #roomObjects{display:none}.intro-running #player.sleeping{transform:translate(-50%,-100%) rotate(85deg)}.intro-running #player.breakfast{animation:breakfast .65s steps(2) infinite}@keyframes breakfast{50%{transform:translate(-50%,calc(-100% - 3px)) rotate(-4deg)}}
@media(max-width:700px){#dialogText{font-size:17px;min-height:80px}#talk h2{font-size:17px}#notebook{padding:18px}#inventory{grid-template-columns:repeat(2,minmax(0,1fr))}#inventory article{padding:12px!important}#inventory img{width:60px;height:60px}#roomName{font-size:12px;max-width:65%}.room-action{font-size:10px;max-width:100px}.rpg-page .rpg-key{font-size:11px}.rpg-page .rpg-row{grid-template-columns:80px repeat(16,minmax(0,1fr))!important}.duration-handle{width:8px;font-size:8px}}
@media(prefers-reduced-motion:reduce){.gift-dialog img,.intro-running #player,#scenery{animation:none!important}}

.intro-running #player.breakfast{clip-path:inset(0 0 20% 0)}

#world.scene-interior{aspect-ratio:16/9}#game:fullscreen #world.scene-interior{aspect-ratio:16/9;width:min(100%,130vh)}

.scene-interior #villagers .npc.room-guide{display:block;left:62%!important;top:58%!important}
