*{box-sizing:border-box}html,body{margin:0;overflow:hidden;width:100%;height:100%;background:#153d4a;color:#263e41;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;font:inherit}button:focus-visible,a:focus-visible{outline:3px solid #ffdf8e;outline-offset:4px}button{border:0}button:disabled{opacity:.55;cursor:default}[hidden]{display:none!important}#game{height:100dvh;width:100%;position:relative;overflow:hidden}#world{display:block;width:100%;height:100%;touch-action:none}.vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 150px #123b4a3b}header{position:absolute;z-index:2;top:max(22px,env(safe-area-inset-top));left:32px;right:32px;display:flex;justify-content:space-between;align-items:center;gap:14px}.brand{text-decoration:none;color:#fff6d8;text-shadow:0 1px 10px #123747;display:flex;flex-direction:column}.brand b{font-size:18px;letter-spacing:3px}.brand b span{color:#f0c975}.brand small{font-size:8px;letter-spacing:3px;margin-top:6px}.header-actions{display:flex;gap:8px}.header-actions button{height:41px;padding:0 13px;border:1px solid #fff5d64d;border-radius:22px;background:#173d48c9;color:#fff5dc;font-size:16px;backdrop-filter:blur(12px)}.header-actions span{font-size:12px;margin-left:5px}.welcome{position:absolute;z-index:3;top:18%;left:7%;width:min(450px,80vw);color:#fff6dc;text-shadow:0 2px 20px #153e4b}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2.8px}.welcome h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(48px,5.8vw,82px);letter-spacing:-3px;line-height:1.02;margin:20px 0 24px}.welcome h1 i{font-size:.44em;letter-spacing:0}.welcome>p:not(.story){font-family:Georgia,serif;font-size:22px;line-height:1.5;margin:0}.intro-line{width:50px;height:1px;background:#ffdf96;margin:24px 0}.story{font-size:14px;line-height:1.8;max-width:335px;color:#f3efd9}.gold{background:#ffe0a0;color:#203c41;border-radius:6px;padding:17px 23px;box-shadow:0 5px 25px #092e4d44;font-size:14px;font-weight:700;margin-top:16px;min-height:50px}.gold span{padding-left:20px}.gold:hover{background:#ffebb9;transform:translateY(-1px)}.welcome-foot{font-size:8px;letter-spacing:1.6px;margin-top:17px;color:#efe4c7}.chapter{margin-top:42px;font-size:9px;letter-spacing:2px;color:#f2d18e}.chapter span{display:block;color:#dfebdc;margin-top:8px;font-size:8px}.quest-panel{position:absolute;z-index:2;top:105px;left:32px;width:285px;border-left:2px solid #e8d49a;padding:5px 18px 8px;color:#fff8df;background:linear-gradient(90deg,#173e48ba,transparent);text-shadow:0 1px 4px #123a42}.quest-panel .eyebrow{font-size:8px;color:#f3d7a2}.quest-panel h2{font-family:Georgia,serif;font-weight:400;font-size:23px;margin:10px 0 7px}.quest-panel p{font-size:12px;line-height:1.7;margin:0;color:#e9f0db}.shrine-status{display:flex;gap:12px;margin-top:15px;font-size:11px;color:#c4d4c2}.shrine-status .lit{color:#ffe6a5}.vitals{position:absolute;z-index:2;bottom:32px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:15px;background:#173d48df;border:1px solid #e6dbab4d;color:#ffe7ab;padding:12px 20px;border-radius:28px;white-space:nowrap;font-size:14px}.vitals #hearts{color:#ffb2a3;letter-spacing:3px;font-size:16px}.divider{height:20px;width:1px;background:#d4d5aa40}#saveState{font-size:9px;color:#bcd5c5}.location{position:absolute;bottom:94px;left:50%;transform:translateX(-50%);color:#fff3d2;font-size:9px;letter-spacing:4px;text-shadow:0 2px 5px #143b46;white-space:nowrap}.prompt{position:absolute;z-index:3;left:50%;bottom:140px;transform:translateX(-50%);background:#fff4dce8;padding:12px 20px;box-shadow:0 5px 25px #173e4766;border-radius:8px;text-align:center;font-size:13px;white-space:nowrap}.prompt b{border:1px solid #315c5c50;padding:2px 6px;margin-right:7px;border-radius:3px}.toast{position:absolute;z-index:5;top:85px;left:50%;transform:translate(-50%,-10px);padding:12px 20px;background:#fff1d7;color:#204743;border-radius:7px;opacity:0;transition:.25s;pointer-events:none;max-width:85vw;text-align:center;font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}.joystick{position:absolute;z-index:4;left:28px;bottom:max(30px,env(safe-area-inset-bottom));width:118px;height:118px;border:1px solid #fff3c95c;border-radius:50%;background:#123f434f;touch-action:none;display:flex;align-items:center;justify-content:center;user-select:none}.joystick:before{content:"";width:86px;height:86px;border:1px solid #fff5cf26;border-radius:50%}.joystick #stick{position:absolute;width:48px;height:48px;border:1px solid #ffebba80;background:#f9e8bd55;box-shadow:0 3px 16px #12353333;border-radius:50%;pointer-events:none}.joystick span{position:absolute;bottom:8px;font-size:7px;letter-spacing:2px;color:#fff7d5}.action-controls{position:absolute;z-index:4;right:28px;bottom:max(32px,env(safe-area-inset-bottom));display:flex;align-items:flex-end;gap:11px}.action{width:68px;height:68px;border-radius:50%;border:1px solid #ffedbf75;background:#163f4ac9;color:#fff2cc;font-size:27px;touch-action:none;user-select:none}.action small{display:block;font-size:7px;letter-spacing:1px;margin-top:2px}.action:active{transform:scale(.94);background:#3f7576}.small{width:52px;height:52px;font-size:22px;margin-bottom:8px}.gold-action{background:#e5d19be8;color:#234943}.keyboard-hint{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);color:#eff4dfab;font-size:8px;letter-spacing:1px;white-space:nowrap}.keyboard-hint span{padding:0 8px}dialog{border:1px solid #dfca96;background:#f8f1e1;border-radius:18px;color:#244843;max-width:490px;width:calc(100vw - 30px);padding:0;box-shadow:0 25px 120px #052b3e99;max-height:85dvh;overflow-y:auto}dialog::backdrop{background:#123c4b88;backdrop-filter:blur(6px)}.dialog-inner{padding:36px 30px}.close{position:absolute;right:12px;top:10px;width:34px;height:34px;background:transparent;font-size:26px;color:#52736e;border-radius:50%}dialog .eyebrow{color:#79917b}dialog h2{font-family:Georgia,serif;font-weight:400;font-size:32px;margin:13px 0 15px;line-height:1.1}dialog p{font-size:14px;line-height:1.8;color:#526a62}dialog .gold{box-shadow:none;border:1px solid #d6bb77;background:#ead5a0;width:100%}.puzzle-row{display:flex;gap:12px;justify-content:center;margin:24px 0}.rune{min-width:70px;min-height:75px;background:#e2eadb;border:1px solid #bacab4;border-radius:12px;color:#365e52;font-size:32px;padding:12px}.rune small{display:block;font-size:9px;margin-top:10px}.puzzle-info{min-height:24px;font-size:12px;color:#638360;text-align:center}.menu-row{display:flex;gap:10px;margin-top:10px}.menu-row button{padding:12px;border:1px solid #c7d0b8;border-radius:6px;background:#edf0e4;color:#365a4e;flex:1;font-size:12px}.map-canvas{width:100%;background:#1c6170;border-radius:12px}.legend{font-size:11px!important;line-height:1.7!important}.tip{border-left:2px solid #d9be7f;padding-left:14px}.achievement{font-size:50px;margin:15px 0;color:#a48035;text-align:center}.map-label{color:#59776d;font-size:11px;text-align:center}
@media(max-width:700px){header{left:16px;right:16px;top:max(15px,env(safe-area-inset-top))}.brand b{font-size:14px;letter-spacing:2px}.brand small{font-size:6px;letter-spacing:2px}.header-actions{gap:5px}.header-actions button{width:36px;height:36px;padding:0;font-size:18px}.header-actions span{display:none}.welcome{left:8%;top:19%;width:84%}.welcome h1{font-size:54px}.welcome .story{max-width:290px;font-size:13px}.welcome .chapter{margin-top:24px}.quest-panel{top:83px;left:16px;width:240px;padding-left:12px}.quest-panel h2{font-size:20px;margin-top:8px}.quest-panel p{font-size:11px}.shrine-status{margin-top:10px}.vitals{bottom:183px;padding:8px 15px;font-size:12px;gap:10px}.vitals #hearts{font-size:14px}#saveState{display:none}.location{bottom:225px;font-size:8px;letter-spacing:2px}.prompt{bottom:258px;font-size:11px;max-width:90%;white-space:normal;width:max-content}.joystick{left:20px;bottom:34px;width:110px;height:110px}.action-controls{right:17px;bottom:42px;gap:8px}.action{width:60px;height:60px}.small{width:46px;height:46px}.keyboard-hint{display:none}.toast{top:235px;width:85%;font-size:12px}.dialog-inner{padding:32px 23px}.gold{margin-top:10px}.welcome-foot{font-size:7px}.welcome>p:not(.story){font-size:20px}}
@media(max-height:610px){.welcome{top:19%;left:6%}.welcome h1{font-size:42px;margin:12px 0}.welcome .story,.welcome .intro-line,.welcome .welcome-foot,.welcome .chapter{display:none}.welcome>p:not(.story){font-size:16px}.quest-panel{top:78px}.vitals{bottom:20px}.location{bottom:70px}.prompt{bottom:104px}.keyboard-hint{display:none}.joystick{width:95px;height:95px;bottom:22px}.action-controls{bottom:22px}.toast{top:72px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.gold:hover{transform:none}}

.visited-islands{display:flex;flex-wrap:wrap;gap:8px;max-height:180px;overflow:auto}.visited-islands button{padding:10px 12px;border:1px solid #c3cfb5;border-radius:8px;background:#e8eddf;color:#35574c;font-size:12px}.visited-islands button:disabled{opacity:.6}.menu-row{flex-wrap:wrap}

/* Make the laptop movement instructions readable. */
@media(min-width:701px) and (min-height:611px){.keyboard-hint{font-size:10px;letter-spacing:.4px}}
#world:focus{outline:none}
