:root{--ink:#29463d;--forest:#294d42;--paper:#f7f5e9;--muted:#738276;--gold:#b58c4e;--line:#dce1d2;font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif;color:var(--ink);font-size:15px;font-synthesis:none}
.sky-status{display:flex;flex-direction:column;gap:3px}#weather-label{font-size:8px;letter-spacing:.2px;color:var(--muted)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#87a281}body{overscroll-behavior:none}button,input,select{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e2b660;outline-offset:4px}button{touch-action:manipulation}button:disabled{opacity:.65;cursor:default}button:hover{filter:brightness(1.05)}button:active{transform:translateY(1px)}[hidden]{display:none!important}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}#world{position:fixed;width:100%;height:100%;height:100dvh;touch-action:none;display:block}.vignette{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 60% 45%,transparent 30%,#203e341a 100%)}.menu-header{position:absolute;left:max(40px,env(safe-area-inset-left));right:max(40px,env(safe-area-inset-right));top:max(30px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;z-index:3}.brand{font:600 28px Georgia,serif;letter-spacing:-1px;display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--forest)}.brand-mark{width:42px;height:42px;border:1px solid #45664c80;border-radius:50%;display:grid;place-items:center}.brand-mark .icon{width:26px;height:26px}.brand-dot{font:15px Georgia;margin-left:1px;margin-top:-14px}.header-tools{display:flex;align-items:center;gap:14px}.soft-button,.icon-button{background:transparent;border:0;display:inline-flex;align-items:center;justify-content:center;gap:9px;height:44px;min-width:44px;border-radius:50%;padding:10px}.soft-button{border-radius:24px;font-size:13px;background:#f6f5e440;padding:10px 16px}.title-screen{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#edf0d3aa 0%,#eef0d560 27%,transparent 62%)}.title-copy{position:absolute;left:8.1%;top:50%;transform:translateY(-48%);pointer-events:auto}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:650;line-height:1.6;margin:0 0 20px;display:flex;align-items:center;gap:11px}.eyebrow>span{display:block;width:22px;height:1px;background:var(--ink)}h1,h2,h3,p{margin-top:0}.title-copy h1{font:400 clamp(78px,8.6vw,140px)/.97 Georgia,"Times New Roman",serif;letter-spacing:-5px;margin:26px 0}.title-copy h1 em{font-weight:400;color:#4d7053}.intro{font-size:16px;line-height:1.8;color:#49634f;margin-bottom:30px}.primary{background:var(--forest);color:#faf7e9;border:1px solid var(--forest);border-radius:12px;padding:17px 23px;min-height:54px;font-size:14px;font-weight:600;display:flex;justify-content:center;align-items:center;gap:22px;box-shadow:0 5px 18px #213c2514;letter-spacing:.1px}.primary .icon{width:20px;height:20px}.title-actions{display:flex;align-items:flex-start;gap:8px;flex-direction:column}.continue{border:0;border-bottom:1px solid #4e694f55;border-radius:0;background:transparent;font-size:13px;padding:13px 0 7px;margin-left:3px}.continue span{margin-left:12px}.title-footer{position:absolute;bottom:34px;left:40px;right:40px;font-size:9px;letter-spacing:1.9px;font-weight:600;display:flex;align-items:center;gap:12px}.little-spark{font-size:21px}.footer-note{margin-left:auto;font-weight:400;letter-spacing:.3px;font-size:11px}.scene-caption{position:absolute;right:9%;bottom:19%;font-size:10px;font-weight:650;letter-spacing:2px;color:#304b39;text-shadow:0 1px 6px #ffffcc}.scene-caption span:last-child{display:block;font-weight:400;font-size:11px;letter-spacing:.3px;margin-top:10px}.caption-line{display:inline-block;width:26px;height:1px;background:currentColor;margin-right:13px;vertical-align:middle}.panel,.dialog{background:var(--paper);border:1px solid #ffffff80;box-shadow:0 20px 80px #1c312b26;border-radius:22px}.customizer{position:absolute;top:50%;transform:translateY(-45%);left:6%;width:355px;padding:28px;max-height:calc(100dvh - 130px);overflow:auto;z-index:4}.panel-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.panel-top .eyebrow{margin:0;font-size:8px}.panel-top .icon-button{margin:-10px -12px -10px 0}h2{font:400 31px/1.1 Georgia,serif;letter-spacing:-1px;margin-bottom:12px}.muted{color:var(--muted);font-size:12px;margin-bottom:24px}.field-label{display:block;font-size:9px;letter-spacing:1.7px;font-weight:650;margin:18px 0 8px}input,select{width:100%;border:1px solid #d7ddcf;background:#fdfcf6;border-radius:9px;color:var(--ink);padding:11px 13px;outline:0;min-height:44px}input{font-size:16px}select{font-size:13px}.field-heading{display:flex;align-items:center;justify-content:space-between}.field-heading>span:last-child{font-size:10px;margin-top:10px;color:var(--muted)}.coat-options{display:flex;gap:12px;padding:2px 0}.coat{width:36px;height:36px;border-radius:50%;border:3px solid var(--paper);box-shadow:0 0 0 1px #d9dfcf;position:relative}.coat[aria-pressed=true]{box-shadow:0 0 0 2px var(--forest)}.coat[aria-pressed=true]:after{content:'✓';color:white;position:absolute;inset:0;display:grid;place-items:center;font-size:14px;text-shadow:0 1px 3px black}.field-hint{font-size:11px;color:var(--muted);margin:9px 0 19px}.mode-options{display:flex;gap:8px;margin:14px 0 21px}.mode{flex:1;border:1px solid #d9ddcf;background:transparent;border-radius:10px;padding:12px 7px;min-height:58px}.mode strong{display:block;font-size:11px}.mode span{display:block;font-size:10px;font-weight:400;margin-top:4px;color:var(--muted)}.mode.selected{border-color:#6b856c;background:#e7eddd}.customizer>.primary{width:100%}.save-note{font-size:10px;color:var(--muted);text-align:center;margin:14px 0 0}.glass{background:#f8f8edec;box-shadow:0 3px 20px #29483712;border:1px solid #ffffff55;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}#hud{position:absolute;inset:0;pointer-events:none}#hud button,#joystick{pointer-events:auto}.horse-card{position:absolute;left:max(22px,env(safe-area-inset-left));top:max(22px,env(safe-area-inset-top));width:230px;padding:15px 17px;border-radius:17px}.horse-identity{display:flex;align-items:center;gap:10px;padding-bottom:12px;margin-bottom:9px;border-bottom:1px solid #637b5c20}.horse-identity strong{font:400 21px Georgia,serif;display:block}.horse-identity span{display:block;font-size:9px;margin-top:4px;color:var(--muted)}.avatar{background:#e4e8d9;border-radius:50%;display:grid;place-items:center;width:39px;height:39px;flex-shrink:0}.avatar .icon{width:25px;height:25px}#rider-badge{font-size:8px;background:#e0e8d9;border-radius:6px;padding:4px;margin-left:auto}.needs{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px}.need{display:flex;align-items:center;gap:5px;color:#6e8d54}.need .icon{width:15px;height:15px}.meter{height:5px;flex:1;min-width:20px;background:#66774620;border-radius:10px;overflow:hidden}.meter i{display:block;width:100%;height:100%;background:currentColor;border-radius:10px;transition:width .3s}.need>span{width:18px;text-align:right;font-size:8px;opacity:.8}.water{color:#6194a0}.energy{color:#b89c58}.health{color:#bc7f6e}.need.low{color:#b75648;animation:soft-pulse 2s infinite}.time-pill{position:absolute;left:50%;top:max(22px,env(safe-area-inset-top));transform:translateX(-50%);border-radius:30px;padding:11px 17px;display:flex;align-items:center;gap:9px;font-size:11px;white-space:nowrap}.time-pill .icon{width:18px;height:18px;color:#b28f51}.game-tools{position:absolute;right:max(22px,env(safe-area-inset-right));top:max(22px,env(safe-area-inset-top));display:flex;gap:8px}.game-tools .icon-button{width:42px;height:42px;min-width:42px}.minimap{position:absolute;right:22px;top:78px;width:150px;padding:7px;border-radius:17px}.minimap canvas{display:block;width:134px;height:134px;border-radius:11px}.minimap>span{display:flex;gap:6px;align-items:center;font-size:9px;padding:7px 3px 3px}.minimap .icon{width:13px;height:13px}.minimap>span>span{margin-left:auto}.quest{position:absolute;bottom:205px;left:24px;max-width:262px;padding:14px 17px;display:flex;gap:12px;text-align:left;border-radius:13px}.quest-star{color:var(--gold);font-size:25px}.quest small{display:block;font-size:7px;letter-spacing:1.6px;color:var(--muted);margin:2px 0 6px}.quest strong{display:block;font-family:Georgia,serif;font-size:15px;font-weight:400;margin-bottom:4px}.quest span span{font-size:10px;line-height:1.5;color:var(--muted);display:block}.bottom-controls{position:absolute;bottom:max(40px,env(safe-area-inset-bottom));left:max(30px,env(safe-area-inset-left));right:max(30px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.movement{display:flex;flex-direction:column;align-items:center;gap:12px}#joystick{width:116px;height:116px;border-radius:50%;background:#f5f6e54d;border:1px solid #ffffef99;display:grid;place-items:center;position:relative;touch-action:none;box-shadow:inset 0 0 25px #334f3512}.joystick-directions{position:absolute;top:2px;left:0;right:0;text-align:center;color:#f8f9e9;font-size:22px}#joystick-knob{width:54px;height:54px;border-radius:50%;background:#f4f5e7c9;border:1px solid #ffffeb;box-shadow:0 3px 10px #273c3933;pointer-events:none}.keyboard-tip{font-size:9px;color:#f6f8eb;text-shadow:0 1px 3px #334e3d}.action-controls{display:flex;align-items:flex-end;flex-direction:column;gap:13px}.small-actions{display:flex;gap:11px}.round-action{height:65px;width:65px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:relative}.round-action span{font-size:9px}.round-action .icon{width:21px;height:21px}.round-action kbd{position:absolute;top:-5px;right:-6px;font:8px "Segoe UI",sans-serif;background:#edf0de;color:var(--muted);border:1px solid #b7c2a8;border-radius:4px;padding:2px 4px}.round-action[aria-pressed=true]{background:var(--forest);color:var(--paper)}.interact{min-width:218px;gap:12px;height:51px;min-height:51px;border-radius:30px;font-size:12px;padding:12px 17px;box-shadow:0 4px 20px #294d4255}.interact kbd{margin-left:auto;font:10px inherit;background:#ffffff21;padding:4px 6px;border-radius:4px}.camera-hint{position:absolute;bottom:max(13px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);font-size:9px;white-space:nowrap;color:#f6f6e3;text-shadow:0 1px 3px #29473d;display:flex;gap:9px}.toast{position:absolute;left:50%;bottom:185px;transform:translateX(-50%);max-width:min(410px,85vw);padding:14px 21px;border-radius:12px;text-align:center;font-size:12px;line-height:1.6;color:var(--ink);z-index:8}.toast b{color:var(--forest)}#location-reveal{position:absolute;left:50%;top:19%;transform:translateX(-50%);text-align:center;color:#fffce4;text-shadow:0 2px 15px #375640;width:95%;animation:reveal 4s both}#location-reveal>span{font-size:9px;letter-spacing:4px;display:block;margin-bottom:9px}#location-reveal strong{font:400 40px Georgia,serif}#labels{position:absolute;inset:0;overflow:hidden}.world-label{position:absolute;transform:translate(-50%,-100%);background:#faf8e6ed;border:1px solid #ffffeaa8;border-radius:16px;padding:5px 10px;font-size:10px;white-space:nowrap;box-shadow:0 2px 8px #293f3a13}.world-label.waypoint{background:var(--forest);color:#f6e6b0;border:0}.world-label.friend{color:#8c7459}#sleep-overlay{position:absolute;inset:0;background:#182e4877;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--paper);z-index:10;pointer-events:auto;backdrop-filter:blur(2px)}.sleep-stars{font-size:44px;margin-bottom:25px;color:#f7e8b9}#sleep-overlay h2{font-size:36px}#sleep-overlay p{font-size:13px;color:#d9e0d7}#sleep-overlay .primary{margin-top:25px;background:#f0ebd8;color:var(--forest);border-color:#f0ebd8}.dialog{color:var(--ink);padding:35px;width:min(680px,calc(100vw - 32px));max-height:90dvh;overflow:auto;outline:none}.dialog::backdrop{background:#17342e88;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}.dialog>.icon-button.close-dialog{position:absolute;right:15px;top:15px}.dialog>.eyebrow{margin-bottom:16px;padding-right:22px;font-size:8px}.dialog h2{font-size:36px}.dialog>p{font-size:13px;line-height:1.7;color:#788375}.dialog>.primary{margin-top:20px}.compact-dialog{width:min(390px,calc(100vw - 32px));text-align:center;padding:36px}.compact-dialog>.eyebrow{justify-content:center;padding:0}.compact-dialog>.primary,.compact-dialog>.secondary{width:100%}.secondary{display:block;border:1px solid var(--line);background:transparent;border-radius:10px;min-height:45px;padding:12px 18px;font-size:12px;margin-top:10px}.help-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:23px 22px;margin:28px 0}.help-grid .icon{color:#7a926e;margin-bottom:10px}.help-grid h3{font:400 19px Georgia,serif;margin-bottom:8px}.help-grid p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}.dialog .help-keys{font-size:10px;border-top:1px solid var(--line);padding-top:20px}.dialog .fine-print{font-size:10px}.journal-item{display:flex;align-items:center;gap:16px;border-top:1px solid var(--line);padding:16px 0}.journal-item>span{width:31px;height:31px;flex-shrink:0;border:1px solid #cdd6bd;border-radius:50%;display:grid;place-items:center;font:14px Georgia,serif;color:var(--muted)}.journal-item.done>span{background:#e3ebd6;color:#638056;border-color:#e3ebd6}.journal-item strong{font:400 18px Georgia,serif;display:block;margin-bottom:4px}.journal-item p{font-size:11px;color:var(--muted);margin:0;line-height:1.5}.map-dialog{width:min(670px,calc(100vw - 25px));padding:25px 30px}.map-dialog h2{margin-bottom:5px}.map-dialog>p{margin-bottom:6px}#big-map{width:100%;height:auto;display:block;margin-top:16px;border:1px solid #d5ddc5;border-radius:14px;touch-action:manipulation}.map-destinations{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0}.map-destinations button{min-height:42px;font-size:10px;border:1px solid #d8dfcc;border-radius:8px;background:#eef0e2;padding:7px}.map-destinations button.selected{background:var(--forest);color:var(--paper)}#clear-waypoint{width:100%;min-height:38px}.sweet-wrapper{display:flex;align-items:center;justify-content:center;margin:5px auto 35px;color:#6184a2;gap:0;transform:rotate(-8deg)}.sweet-wrapper>span{font-size:55px}.sweet-wrapper>div{background:white;padding:14px 21px;border:1px solid #d6e0df;box-shadow:0 3px 0 #ced7ca;display:flex;flex-direction:column}.sweet-wrapper b{color:#b56359;font-size:13px}.sweet-wrapper div span{font:21px Georgia,serif;padding:4px}.sweet-wrapper small{font-size:7px;letter-spacing:2px}.rescue-heart{width:38px;height:38px;color:#b88b77;margin-bottom:20px}#loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#e2e7cf;z-index:30;font:20px Georgia,serif}#loading .icon{width:45px;height:45px;margin:25px;animation:soft-pulse 2s infinite}#error-screen,.noscript{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px;background:var(--paper);z-index:100}#error-screen h1{font:38px Georgia,serif}#error-screen p{max-width:420px;line-height:1.7}body.playing .menu-header{display:none}body.customizing .title-screen{display:none}
@keyframes soft-pulse{50%{opacity:.6}}@keyframes reveal{0%{opacity:0;translate:0 7px}20%,75%{opacity:1;translate:0 0}100%{opacity:0}}
@media(pointer:coarse){kbd,.keyboard-tip{display:none!important}.movement{gap:0}.bottom-controls{bottom:max(30px,env(safe-area-inset-bottom))}.camera-hint{font-size:8px}.round-action{width:66px;height:66px}}
@media(max-width:800px){.menu-header{top:max(22px,env(safe-area-inset-top));left:25px;right:25px}.title-copy{left:7%}.title-copy h1{font-size:100px}.customizer{left:4%;width:320px;padding:23px}.scene-caption{right:7%;bottom:15%}.horse-card{width:205px;padding:12px 14px}.time-pill{left:242px;transform:none;font-size:9px;padding:10px 12px}.quest{max-width:220px}.minimap{width:122px}.minimap canvas{width:106px;height:106px}.help-grid{grid-template-columns:1fr 1fr}.camera-hint>span:first-child,.camera-hint>#save-status{display:none}}
@media(max-width:540px) and (orientation:portrait){.menu-header{top:max(20px,env(safe-area-inset-top));left:23px;right:17px}.brand{font-size:24px}.brand-mark{width:35px;height:35px}.header-tools{gap:0}.soft-button{background:transparent;padding:8px}.soft-button span{display:none}.title-screen{background:linear-gradient(180deg,#e5ead077 0%,transparent 50%,#203e3833 100%)}.title-copy{top:16%;left:8%;right:8%;transform:none}.eyebrow{font-size:8px;letter-spacing:1.8px}.title-copy h1{font-size:83px;letter-spacing:-4px;margin:19px 0 16px}.intro{font-size:12px;line-height:1.7}.title-actions{position:fixed;bottom:84px;left:8%;right:8%;align-items:stretch}.title-actions .primary{min-height:53px;font-size:13px}.continue{color:#f6f4e5;border-bottom-color:#f6f4e555;width:max-content;align-self:center;text-shadow:0 1px 4px #28412e}.title-footer{left:8%;right:8%;bottom:26px;justify-content:center;color:#f3f2dd;font-size:8px;letter-spacing:1.4px}.footer-note,.scene-caption{display:none}.customizer{top:auto;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;transform:none;max-height:62dvh;padding:20px 23px}.customizer h2{font-size:27px}.customizer .muted{margin-bottom:12px}.customizer .field-label{margin-top:12px}.customizer .coat-options{gap:13px}.customizer .field-hint{margin:7px 0 10px}.customizer .mode-options{margin:12px 0}.customizer>.primary{min-height:48px;padding:12px}.customizer .save-note{margin-top:10px;font-size:9px}.horse-card{left:12px;top:max(12px,env(safe-area-inset-top));width:192px;padding:11px 13px}.horse-identity{padding-bottom:10px;margin-bottom:9px}.horse-identity strong{font-size:19px}.horse-identity span{font-size:8px}.avatar{width:32px;height:32px}.needs{gap:9px}.time-pill{left:12px;top:153px;transform:none;font-size:9px;padding:8px 12px}.game-tools{right:12px;top:max(12px,env(safe-area-inset-top));gap:5px}.game-tools .icon-button{width:37px;height:37px;min-width:37px;padding:8px}.game-tools .icon{width:18px;height:18px}.minimap{right:12px;top:61px;width:106px;padding:5px;border-radius:12px}.minimap canvas{width:94px;height:94px;border-radius:8px}.minimap>span{font-size:8px;padding:5px 2px 2px}.quest{left:12px;bottom:195px;max-width:198px;padding:10px 12px;gap:8px}.quest-star{font-size:20px}.quest small{font-size:6px;margin:0 0 4px}.quest strong{font-size:13px}.quest span span{font-size:9px}.bottom-controls{left:16px;right:14px;bottom:max(39px,env(safe-area-inset-bottom));gap:10px}#joystick{width:105px;height:105px}#joystick-knob{width:49px;height:49px}.small-actions{gap:6px}.round-action{height:52px;width:52px}.round-action .icon{width:18px;height:18px}.round-action span{font-size:8px}.interact{min-width:168px;height:47px;min-height:47px;padding:12px;gap:8px;font-size:11px}.camera-hint{bottom:max(14px,env(safe-area-inset-bottom));font-size:8px}.toast{bottom:294px;font-size:11px;max-width:90vw;min-width:220px;padding:12px 15px}#location-reveal{top:30%}#location-reveal strong{font-size:31px}.dialog{padding:25px;max-height:90dvh}.dialog h2{font-size:30px}.help-grid{gap:20px 15px}.help-grid h3{font-size:17px}.help-grid p{font-size:10px}.dialog .eyebrow{font-size:7px}.map-dialog{padding:22px 18px}.map-destinations button{font-size:9px}.journal-item strong{font-size:16px}.journal-item p{font-size:10px}#sleep-overlay h2{font-size:27px;text-align:center}#rider-badge{display:none}}
@media(max-height:560px) and (orientation:landscape){.menu-header{top:16px;left:25px;right:20px}.brand{font-size:23px}.brand-mark{width:31px;height:31px}.title-copy{left:7%;top:50%;transform:translateY(-42%)}.title-copy .eyebrow{font-size:7px;margin-bottom:12px}.title-copy h1{font-size:65px;margin:14px 0;letter-spacing:-3px}.intro{font-size:11px;margin-bottom:16px}.primary{min-height:44px;padding:11px 18px;font-size:12px}.title-footer{bottom:13px;left:27px;font-size:7px}.scene-caption{font-size:8px}.title-actions{flex-direction:row;align-items:center;gap:12px}.continue{font-size:10px}.customizer{top:12px;bottom:12px;left:20px;transform:none;max-height:none;width:315px;padding:18px 22px}.customizer h2{font-size:24px}.customizer .muted{margin-bottom:9px}.customizer .field-label{margin-top:10px;font-size:8px}.customizer input,.customizer select{padding:8px 10px;min-height:37px}.customizer .field-hint{margin-bottom:8px}.customizer .mode-options{margin:10px 0}.customizer .mode{padding:8px 5px;min-height:48px}.customizer .coat{width:29px;height:29px}.customizer .save-note{font-size:8px}.customizing .menu-header{display:none}.horse-card{top:12px;left:14px;width:195px;padding:9px 12px}.horse-identity{padding-bottom:7px;margin-bottom:7px}.horse-identity strong{font-size:18px}.horse-identity span{font-size:8px}.avatar{width:30px;height:30px}.needs{gap:7px}.time-pill{top:12px;left:225px;padding:9px 12px;font-size:9px}.game-tools{top:12px;right:15px}.game-tools .icon-button{width:36px;height:36px;min-width:36px}.minimap{top:57px;right:17px;width:97px;padding:5px}.minimap canvas{width:85px;height:85px}.minimap>span{font-size:8px;padding:3px}.quest{left:225px;bottom:auto;top:57px;padding:10px 13px;max-width:200px}.quest small{font-size:6px}.quest strong{font-size:12px}.quest span span{font-size:8px}.bottom-controls{bottom:max(22px,env(safe-area-inset-bottom));left:25px;right:22px}#joystick{width:93px;height:93px}#joystick-knob{width:44px;height:44px}.round-action{width:49px;height:49px}.round-action .icon{width:17px;height:17px}.round-action span{font-size:8px}.small-actions{gap:8px}.interact{min-width:190px;min-height:42px;height:42px;font-size:10px;padding:10px 15px}.action-controls{gap:8px}.camera-hint{bottom:5px;font-size:7px}.toast{bottom:90px;font-size:10px;max-width:260px;padding:9px 13px}#location-reveal{top:36%}#location-reveal strong{font-size:30px}.dialog{max-height:94dvh}#sleep-overlay h2{font-size:30px}.sleep-stars{font-size:32px;margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Steering and action buttons accept separate fingers without browser gestures. */
#hud,.bottom-controls,.bottom-controls button{touch-action:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.round-action.pressed{transform:scale(.94);box-shadow:inset 0 2px 8px #294d4240}
#performance-label{font-size:8px;color:var(--muted)}
body[data-graphics="Light"] .glass{backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:540px) and (orientation:portrait){
  .bottom-controls kbd,.keyboard-tip{display:none!important}
  #jump-button,#gallop-button{width:64px;height:64px}
  #rest-button{width:44px;height:44px}
  .small-actions{gap:8px;align-items:flex-end}
  .bottom-controls{left:max(16px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));bottom:max(39px,calc(env(safe-area-inset-bottom) + 12px))}
  .action-controls{gap:15px}
  .quest{bottom:221px}
  .time-pill{top:calc(max(12px,env(safe-area-inset-top)) + 141px)}
  .minimap{top:calc(max(12px,env(safe-area-inset-top)) + 49px)}
}
@media(max-width:360px) and (orientation:portrait){.horse-card{width:min(192px,calc(100vw - 160px))}#joystick{width:94px;height:94px}.small-actions{gap:6px}#jump-button,#gallop-button{width:60px;height:60px}}
@media(max-height:560px) and (orientation:landscape){.time-pill{transform:none}.quest{top:84px}}
@media(max-height:560px) and (orientation:landscape){.bottom-controls kbd,.keyboard-tip{display:none!important}#jump-button,#gallop-button{width:60px;height:60px}#rest-button{width:44px;height:44px}.small-actions{align-items:flex-end}.horse-card{left:max(14px,calc(env(safe-area-inset-left) + 8px))}.time-pill,.quest{left:calc(225px + env(safe-area-inset-left))}.game-tools{right:max(15px,calc(env(safe-area-inset-right) + 8px))}.minimap{right:max(17px,calc(env(safe-area-inset-right) + 8px))}.bottom-controls{left:max(25px,calc(env(safe-area-inset-left) + 8px));right:max(22px,calc(env(safe-area-inset-right) + 8px));bottom:max(22px,calc(env(safe-area-inset-bottom) + 8px))}}
