@font-face{font-family:Local;src:local('Georgia')}*{box-sizing:border-box}body{margin:0;background:#101f22;color:#f4e9d0;font:18px/1.6 system-ui,sans-serif}button,a,input{font:inherit}button,.file{border:1px solid #78958b;border-radius:8px;background:#24413e;color:#fff3d6;padding:10px 16px;cursor:pointer}button:hover,a:hover{filter:brightness(1.2)}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible,#world:focus-visible{outline:3px solid #f4c375;outline-offset:3px}a{color:#eec883}h1,h2{font-family:Georgia,serif;line-height:1.16}h1{font-size:clamp(28px,3vw,44px);margin:0}h2{font-size:30px}p{margin:12px 0}.mast{display:flex;align-items:center;gap:28px;padding:14px 4%;border-bottom:1px solid #46605a;font-size:15px}.brand{font-size:30px;font-weight:800;text-decoration:none}.mast span{flex:1;letter-spacing:3px;font-size:12px}main{max-width:1440px;margin:auto;padding:24px 4%}.title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.title>button{white-space:nowrap}.eyebrow{color:#e8bb76;font-size:12px;letter-spacing:2px;font-weight:700}#game{border:1px solid #7c9481;border-radius:15px;overflow:hidden;background:#1b302d;box-shadow:0 25px 90px #0005}#game:fullscreen{display:flex;flex-direction:column;justify-content:center;padding:20px;background:#10231f}#game:fullscreen #world{max-height:74vh;aspect-ratio:3/2;margin:auto;width:min(100%,111vh)}.hud{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:#17312f}.hud>span:first-child{color:#f6cd87}#world{position:relative;aspect-ratio:3/2;overflow:hidden;background:#547854;touch-action:manipulation}#scenery{position:absolute;inset:0;background:center/100% 100% url('assets/rpg/village-v9.png');image-rendering:auto}.world-label{position:absolute;left:3%;top:4%;padding:10px 15px;background:#162c2ddb;border:1px solid #afad7a;color:#f8d998;letter-spacing:4px;font-size:14px;pointer-events:none}.world-label small{display:block;font-size:12px;letter-spacing:1px;color:#f3e9d7}.place{position:absolute;transform:translate(-50%,-100%);background:#102b2eef;max-width:25%;padding:7px 12px;font-size:14px;box-shadow:0 4px 10px #0005;z-index:3}.place.active{border-color:#ffdc90;color:#ffdc90}.place.done{border-color:#85d7b2}.sprite{position:absolute;width:64px;height:64px;transform:translate(-50%,-100%);background-image:url('assets/rpg/companions-v9.png');background-repeat:no-repeat;background-size:500% 100%;image-rendering:pixelated;z-index:4;pointer-events:none;filter:drop-shadow(0 4px 2px #0006)}.sprite.walking{animation:walk .24s steps(2) infinite}.sprite.perform{animation:walk .42s steps(2) infinite}@keyframes walk{50%{transform:translate(-50%,calc(-100% - 4px)) rotate(3deg)}}.below{padding:14px 24px}.controls,.note,#saveStatus{color:#bfd0c4;font-size:15px}#shortcuts,.footer-actions{display:flex;gap:10px;flex-wrap:wrap}.footer-actions{margin:20px 0}.file input{width:180px;font-size:12px;margin-left:12px}dialog{color:#f7efdc;background:#172f31;border:1px solid #9aaa82;border-radius:16px;max-width:min(980px,94vw);width:90vw;padding:30px;box-shadow:0 30px 100px #0008;max-height:92vh;overflow:auto}dialog::backdrop{background:#061517bf;backdrop-filter:blur(4px)}dialog[open]{animation:appear .15s ease-out}@keyframes appear{from{opacity:0;transform:translateY(8px)}}#characters{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}#characters button{padding:12px 8px;display:flex;align-items:center;flex-direction:column}#characters .sprite{position:static;transform:none;width:100px;height:100px;filter:none}#characters small{font-size:13px;color:#c6d7cc}#dialogText{font-size:20px;white-space:pre-line}#dialogActions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.close{float:right;font-size:24px;padding:0 12px}#terms{display:grid;grid-template-columns:1fr 1fr;gap:14px}#terms article,#inventory article,#cards article,#party p{border:1px solid #496a60;padding:16px;border-radius:8px}#terms h3{margin:0;color:#edc888}#terms p{font-size:17px}#terms button{font-size:14px}#inventory img{width:85px;float:left;margin-right:20px}#challenge{max-width:1400px;width:96vw;height:94vh;padding:0;overflow:hidden}.exercise-top{height:64px;padding:12px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #708d78}iframe{border:0;width:100%;height:calc(100% - 64px);background:#f5efe2}#challenge::backdrop{background:#081b20ed}@media(max-width:720px){.mast{gap:12px}.mast span{display:none}#characters{grid-template-columns:repeat(2,1fr)}.title{display:block}.hud{flex-wrap:wrap;font-size:14px}.place{font-size:11px;padding:5px;max-width:30%}.sprite{width:46px;height:46px}#terms{grid-template-columns:1fr}.world-label{font-size:10px}.world-label small{display:none}dialog{padding:20px}.exercise-top{font-size:13px;padding:8px}.exercise-top button{font-size:13px}main{padding:16px 3%}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
.sprite{width:58px;height:96px}#characters .sprite{width:90px;height:150px}.npc{z-index:2}#inventory article{min-height:108px}#inventory article::after{content:'';display:block;clear:both}@media(max-width:720px){.sprite{width:36px;height:60px}}

