/* AERU – game UI. Chunky plates, keycaps and menus instead of web page styling. */
:root{color-scheme:dark;--cream:#fff3d3;--muted:#b6c9bd;--mint:#9decc8;--teal:#2f8c84;--ink:#0b292d;--gold:#f4cc81;--gold2:#e2a24f;--plate:rgba(7,30,37,.9);--edge:#b1d8c6;--font:'Trebuchet MS','Avenir Next Rounded','Nunito',ui-rounded,'Segoe UI',system-ui,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;height:100dvh;overflow:hidden;background:#0b2a35;color:var(--cream);font-family:var(--font);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:none;cursor:default}
button,a{-webkit-tap-highlight-color:transparent;font-family:inherit}
button{font:inherit;cursor:pointer;color:inherit;border:0;background:none}
a{text-decoration:none;color:inherit}
:focus{outline:none}
[hidden]{display:none!important}
#world{display:block;width:100%;height:100%;touch-action:none}
#vignette{position:fixed;inset:0;pointer-events:none;box-shadow:inset 0 0 160px #061e2650}
#fade{position:fixed;inset:0;background:#06202a;pointer-events:none;opacity:0}
#fade.on{animation:fadeIn .9s ease-out}
@keyframes fadeIn{from{opacity:1}to{opacity:0}}

/* Keycaps */
kbd{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;margin:0 2px;border-radius:5px;background:linear-gradient(#fff6de,#d9cba5);color:#16343a;font:800 11px/1 var(--font);box-shadow:0 2px 0 #8d7c55,0 3px 6px #0005;vertical-align:middle}

/* HUD */
#hud{position:fixed;top:max(18px,env(safe-area-inset-top));left:max(22px,env(safe-area-inset-left));right:max(22px,env(safe-area-inset-right));display:flex;align-items:flex-start;gap:14px;pointer-events:none}
.brand{display:flex;flex-direction:column;gap:4px}
#health{display:inline-block;width:max-content;height:38px;line-height:28px;overflow:hidden;font-family:Arial,Helvetica,sans-serif;font-size:24px;letter-spacing:3px;color:#ff8f7a;background:var(--plate);border:2px solid #ffb59a66;border-radius:12px;padding:3px 12px 5px;text-shadow:0 2px 0 #6b1f1f;box-shadow:0 4px 0 #04161c80}
#region{line-height:14px;white-space:nowrap;font-weight:800;font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--gold);text-shadow:0 2px 3px #000a;padding-left:4px}
.stats{margin-left:auto;display:flex;gap:10px}
.stats>span{display:flex;align-items:center;gap:6px;background:var(--plate);border:2px solid #9decc855;border-radius:12px;padding:4px 12px 4px 8px;box-shadow:0 4px 0 #04161c80;font-weight:800}
.stats i{font-style:normal;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-size:15px}
.crystal i{background:radial-gradient(#d4fff0,#3fb79c);color:#0b4a43}
.cores{border-color:#f4cc8166!important}.cores i{background:radial-gradient(#fff5d0,#d89a3f);color:#5a3209}
.stats b{display:inline-block;font-size:21px;min-width:22px;text-align:right;text-shadow:0 2px 0 #031a20}
.crystal b{color:var(--mint)}.cores b{color:var(--gold)}
.chest{border-color:#c9a7ff66!important}.chest i{background:radial-gradient(#f0e0ff,#9a6bd6);color:#2e1650}.chest b{color:#e2c9ff}
.stats small{font-size:11px;opacity:.6;font-weight:700}
@media (max-width:480px){.stats{gap:5px}.stats>span{gap:4px;padding:3px 7px 3px 5px}.stats i{width:19px;height:19px;font-size:11px}.stats b{font-size:17px;min-width:12px}.stats small{display:none}}
.bump{animation:bump .35s ease-out}
@keyframes bump{40%{transform:scale(1.35)}}
.square{pointer-events:auto;background:var(--plate);border:2px solid var(--edge);border-radius:12px;width:44px;height:44px;font-size:17px;font-weight:900;box-shadow:0 4px 0 #04161c80;transition:transform .1s}
.square:active{transform:translateY(2px);box-shadow:0 2px 0 #04161c80}
#quest{position:fixed;left:max(22px,env(safe-area-inset-left));top:calc(max(18px,env(safe-area-inset-top)) + 68px);width:270px;background:var(--plate);border:2px solid #f4cc8155;border-radius:12px;padding:9px 13px 10px;pointer-events:none;box-shadow:0 4px 0 #04161c80}
#quest small{font-size:10px;font-weight:800;letter-spacing:2px;color:var(--gold)}
#quest strong{display:block;font-size:16px;margin:3px 0 4px;color:#fff3d3}
#detail{display:block;color:#d7e8de;font-size:12px;line-height:1.4}
#map{position:fixed;right:max(22px,env(safe-area-inset-right));top:calc(max(18px,env(safe-area-inset-top)) + 62px);width:124px;height:124px;border-radius:50%;background:radial-gradient(#173f48f0,#071e25f5);border:3px solid var(--gold);box-shadow:0 0 0 3px #071e25,0 6px 14px #0008;pointer-events:none}
#toast{position:fixed;left:50%;top:24%;transform:translate(-50%,-12px) scale(.96);background:linear-gradient(90deg,transparent,#0a2a33f0 18%,#0a2a33f0 82%,transparent);padding:12px 70px;opacity:0;transition:opacity .3s,transform .3s;pointer-events:none;text-align:center;font-size:16px;font-weight:800;letter-spacing:.5px;max-width:96vw;width:max-content;text-shadow:0 2px 0 #031a20}
#toast::before,#toast::after{content:'';position:absolute;left:12%;right:12%;height:2px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
#toast::before{top:0}#toast::after{bottom:0}
#toast.show{opacity:1;transform:translate(-50%,0) scale(1)}
#prompt{position:fixed;bottom:96px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;background:var(--plate);padding:7px 18px 7px 8px;border:2px solid var(--gold);border-radius:30px;font-size:15px;font-weight:800;pointer-events:auto;color:var(--cream);min-height:46px;box-shadow:0 4px 0 #04161c80;animation:hover 1.4s ease-in-out infinite;white-space:nowrap}
#prompt kbd{width:30px;height:30px;border-radius:50%;font-size:14px;margin:0}
@keyframes hover{50%{transform:translate(-50%,-4px)}}
#desktopHelp{position:fixed;bottom:16px;left:0;right:0;display:flex;justify-content:center;flex-wrap:wrap;gap:6px 16px;font-size:12px;font-weight:700;color:#fff3d3d0;pointer-events:none;text-shadow:0 1px 3px #000;animation:helpOut 1.2s 25s forwards}
#desktopHelp kbd{min-width:20px;height:20px;font-size:10px;margin:0 3px 0 0}
@keyframes helpOut{to{opacity:0;transform:translateY(10px)}}
#flightHud{position:fixed;left:max(22px,env(safe-area-inset-left));bottom:54px;width:auto;min-width:230px;background:var(--plate);border:2px solid #9decc866;border-radius:12px;padding:8px 12px 9px;pointer-events:none;box-shadow:0 4px 0 #04161c80}
.flightHead{display:flex;align-items:center;gap:7px}
.flightHead i{font-style:normal;color:var(--mint);font-size:16px}
#flightHud small{font-size:10px;font-weight:800;letter-spacing:2px;color:#ceffe9}
.flightTrack{height:10px;background:#0a1f25;border:1px solid #9decc855;border-radius:9px;margin-top:6px;overflow:hidden}
#flightFill{display:block;height:100%;width:100%;background:linear-gradient(#c6ffe9,#4fd0aa 60%,#2c9d83);border-radius:9px;transition:width .08s linear}
#flightHud .keys{display:block;font-size:11px;font-weight:700;color:#c8ddd1;margin-top:7px}
#flightHud kbd{min-width:18px;height:18px;font-size:10px}
#bossHud{position:fixed;top:82px;left:50%;transform:translateX(-50%);text-align:center;width:300px;background:var(--plate);border:2px solid #f6bc8b88;border-radius:12px;padding:8px 14px;box-shadow:0 4px 0 #04161c80}
#bossHud small{letter-spacing:2px;font-size:11px;font-weight:800;color:#ffd3b4}
#bossHud>div{height:12px;background:#17323c;border:1px solid #f6bc8b66;border-radius:9px;margin:6px 0;overflow:hidden}
#bossBar{display:block;height:100%;background:linear-gradient(#ffd9b8,#ef8c5e);transition:width .2s}
#bossHint{font-size:12px;font-weight:800}

/* Menus */
.overlay{position:fixed;inset:0;overflow:hidden}
#menu{display:grid;place-items:center;background:radial-gradient(ellipse at center,#06202a30 0%,#06202ab0 75%)}
.menuContent{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px;animation:rise .8s ease-out}
@keyframes rise{from{opacity:0;transform:translateY(20px)}}
.logo{position:relative;display:flex;flex-direction:column;align-items:center}
h1{margin:0;font:900 clamp(84px,15vw,170px)/.9 var(--font);letter-spacing:.08em;padding-left:.08em;background:linear-gradient(#fffbe9 15%,#f4cc81 55%,#d98f3e 90%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 4px 0 #6b4317) drop-shadow(0 10px 22px #031a20aa)}
.ribbon{position:relative;margin-top:-6px;padding:7px 34px;background:linear-gradient(#2f8c84,#1b5c5b);border:2px solid var(--gold);border-radius:6px;font-size:13px;font-weight:900;letter-spacing:6px;box-shadow:0 4px 0 #0a2e2e,0 10px 20px #0006}
.intro{margin:22px 0 0;font-size:17px;font-weight:700;color:#e8f0e2;text-shadow:0 2px 4px #000a}
.menuButtons,.pauseButtons{display:flex;flex-direction:column;gap:12px;width:min(320px,82vw);margin-top:28px}
.primary,.secondary{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;padding:12px 22px;border-radius:14px;font-size:17px;font-weight:900;letter-spacing:.5px;text-transform:uppercase;transition:transform .12s,box-shadow .12s,filter .12s}
.primary{background:linear-gradient(#fff7e0,#f4cc81);color:#3a2408;border:2px solid #fff7e0;box-shadow:0 5px 0 #a8732d,0 10px 20px #0006}
.secondary{background:linear-gradient(#24625f,#174444);color:var(--cream);border:2px solid #9decc866;box-shadow:0 5px 0 #0b2a2c,0 10px 20px #0005}
.primary:hover,.secondary:hover,.primary:focus-visible,.secondary:focus-visible,.primary.sel,.secondary.sel{transform:scale(1.05);filter:brightness(1.1)}
.secondary:hover,.secondary:focus-visible,.secondary.sel{border-color:var(--gold)}
.primary:focus-visible::before,.secondary:focus-visible::before{content:'▶';position:absolute;left:-30px;color:var(--gold);font-size:16px;text-shadow:0 2px 0 #6b4317;animation:nudge .7s ease-in-out infinite}
@keyframes nudge{50%{transform:translateX(5px)}}
.primary:active,.secondary:active{transform:translateY(3px) scale(1.02);box-shadow:0 2px 0 #0b2a2c}
.fine{margin:26px 0 0;font-size:12px;font-weight:700;color:#d4e3d9;text-shadow:0 1px 3px #000}
.fine kbd{min-width:20px;height:20px;font-size:10px}
@media(pointer:coarse){.padHint{display:none}}
.centered{display:grid;grid-template-columns:minmax(0,1fr);place-items:center;background:#06202ac8;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:16px;overflow:auto}
.panel{position:relative;width:440px;max-width:100%;text-align:center;background:linear-gradient(#143c45f5,#0b2a33f8);border:3px solid var(--gold);border-radius:20px;padding:28px 30px 30px;box-shadow:0 0 0 4px #071e25,0 24px 80px #000a;margin:auto;animation:pop .25s ease-out}
@keyframes pop{from{transform:scale(.92);opacity:0}}
.panel.wide{width:760px}
.panel>small{font-size:11px;font-weight:800;letter-spacing:3px;color:var(--gold)}
.panel h2{font:900 34px/1.1 var(--font);margin:8px 0 14px;letter-spacing:1px;color:var(--cream);text-shadow:0 3px 0 #031a20}
.panel.wide h2{font-size:40px;letter-spacing:8px;margin:0 0 18px;background:linear-gradient(#fffbe9,#f4cc81);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 3px 0 #6b4317)}
.panel p{font-size:14px;line-height:1.6;color:#d8e6dc}
.panel .pauseButtons{margin:20px auto 0;width:100%}
.pauseGrid{display:grid;grid-template-columns:260px 1fr;gap:26px;text-align:left}
.pauseGrid .pauseButtons{margin:0}
.pauseButtons .primary,.pauseButtons .secondary{min-height:46px;font-size:15px;padding:10px 16px}
.pauseInfo small,.islandSelect>small{font-size:11px;font-weight:800;letter-spacing:3px;color:var(--gold)}
.controls{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:7px;font-size:13px;font-weight:700}
.controls li{display:flex;align-items:center;gap:10px}
.controls li>span{min-width:104px;display:flex;justify-content:flex-end}
.tip{margin:14px 0 0;padding:10px 12px;background:#0006;border-radius:10px;font-size:12px!important;line-height:1.5!important}
.islandSelect{border-top:2px solid #f4cc8133;margin-top:20px;padding-top:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.islandSelect>small{grid-column:1/-1;text-align:left}
.islandSelect button{font-size:12px;min-height:40px;padding:8px 6px;margin:0;text-transform:none;border-radius:10px}
.islandSelect button:disabled{opacity:.35;cursor:default;transform:none;filter:none}

/* Dialog */
#dialog{position:fixed;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:720px;max-width:94vw;display:flex;align-items:flex-end;gap:16px;animation:slideUp .25s ease-out}
@keyframes slideUp{from{transform:translate(-50%,30px);opacity:0}}
.portrait{width:96px;height:96px;flex-shrink:0;border-radius:50%;background:radial-gradient(circle at 35% 30%,#7fb39c,#1d4249);display:grid;place-items:center;font-size:52px;color:var(--gold);border:3px solid var(--gold);box-shadow:0 0 0 4px #071e25,0 8px 20px #0008;text-shadow:0 3px 0 #6b4317;margin-bottom:8px}
.dialogBody{position:relative;flex:1;background:linear-gradient(#123640f7,#0a2630fa);border:3px solid var(--gold);border-radius:18px;padding:30px 22px 16px;box-shadow:0 0 0 4px #071e25,0 16px 50px #000a;min-height:130px}
.nameplate{position:absolute;top:-18px;left:18px;display:flex;align-items:baseline;gap:10px;background:linear-gradient(#2f8c84,#1b5c5b);border:2px solid var(--gold);border-radius:10px;padding:4px 14px 5px;box-shadow:0 3px 0 #0a2e2e}
#speaker{font:900 18px var(--font);margin:0;letter-spacing:.5px}
#role{color:var(--gold);letter-spacing:1.5px;font-size:9px;font-weight:800}
#speech{font-size:16px;font-weight:600;line-height:1.55;margin:4px 0 10px;min-height:3.1em;-webkit-user-select:text;user-select:text}
.next{float:right;font-size:13px;font-weight:900;letter-spacing:1px;color:var(--gold);padding:6px 4px;animation:blink 1s steps(2) infinite}
@keyframes blink{50%{opacity:.55}}

/* Dialogs own the bottom of the screen. */
body:has(#dialog:not([hidden])) :is(#touch,#flightHud,#desktopHelp,#prompt){display:none!important}

/* Touch controls */
.cameraHint{position:absolute;right:25px;bottom:205px;font-size:10px;font-weight:700;background:#0b2a35df;color:#edf6e7;border-radius:8px;padding:5px 8px;pointer-events:none}
#touch{touch-action:none;user-select:none;-webkit-user-select:none}
#stick{position:fixed;bottom:max(35px,env(safe-area-inset-bottom));left:max(30px,env(safe-area-inset-left));width:115px;height:115px;border-radius:50%;background:radial-gradient(rgba(9,42,48,.55),rgba(9,42,48,.88));border:3px solid var(--edge);box-shadow:0 5px 0 #04161c80;touch-action:none}
#knob{position:absolute;left:32px;top:32px;width:45px;height:45px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#c8f2e2,#4f9e8a);border:2px solid #eff8d7;box-shadow:0 3px 0 #1c4c45;pointer-events:none}
.actions{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));width:204px;height:158px}
.actions button{position:absolute;border-radius:50%;width:64px;height:64px;background:radial-gradient(circle at 35% 30%,#2a6b6a,#0b2f36);border:3px solid var(--edge);color:#fff3d3;font-size:26px;line-height:1;box-shadow:0 5px 0 #04161c;touch-action:none;user-select:none;transition:transform .06s}
.actions button small{display:block;font-size:9px;font-weight:900;letter-spacing:0;color:#fff3d3;margin-top:2px}
.actions button:active,.actions button.held{transform:translateY(4px);box-shadow:0 1px 0 #04161c;filter:brightness(1.25)}
.actions #talk{right:150px;bottom:80px;width:54px;height:54px;font-size:19px;opacity:.7}
.actions #talk.ready{opacity:1;border-color:var(--gold);box-shadow:0 0 0 3px #f4cc8166,0 5px 0 #04161c}
.actions #dodge{right:84px;bottom:84px;width:56px;height:56px;font-size:20px}
.actions #attack{right:92px;bottom:8px}
.actions #fly{right:8px;bottom:94px}
.actions #jump{right:0;bottom:0;width:82px;height:82px;background:radial-gradient(circle at 35% 30%,#fff2cf,#d79a48);border-color:#fff7e0;color:#3a2408;box-shadow:0 5px 0 #7a4e17}
.actions #jump small{color:#3a2408}
.actions #fly.active{background:radial-gradient(circle at 35% 30%,#c6ffe9,#3fb79c);color:#062c36;border-color:#e6ffe4}
.actions #fly.active small{color:#062c36}

@media(pointer:coarse){#desktopHelp,#flightHud .keys{display:none!important}#flightHud{bottom:calc(max(24px,env(safe-area-inset-bottom)) + 128px);left:max(18px,env(safe-area-inset-left));min-width:150px}}
@media(max-width:760px){.pauseGrid{grid-template-columns:1fr;gap:16px}.pauseInfo{display:none}.panel.wide{width:420px}.islandSelect{grid-template-columns:1fr 1fr}}
@media(max-width:650px){#hud{left:14px;right:14px;top:max(12px,env(safe-area-inset-top));gap:8px}#health{font-size:17px;letter-spacing:1px;padding:2px 8px 3px;height:30px;line-height:22px}#region{font-size:9px}.stats{gap:6px}.stats>span{padding:3px 8px 3px 5px;gap:4px}.stats i{width:20px;height:20px;font-size:11px}.stats b{font-size:16px}.stats small{font-size:9px}.square{width:38px;height:38px}#quest{left:14px;top:calc(max(12px,env(safe-area-inset-top)) + 54px);width:calc(100vw - 128px);max-width:260px;padding:7px 10px}#quest strong{font-size:13px}#detail{font-size:11px}#map{right:14px;top:calc(max(12px,env(safe-area-inset-top)) + 50px);width:84px;height:84px}#flightHud{left:18px;min-width:145px}#flightHud small{letter-spacing:1px}.actions{right:max(14px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom))}#stick{left:max(14px,env(safe-area-inset-left));width:112px;height:112px}#knob{left:30px;top:30px}#prompt{bottom:calc(max(20px,env(safe-area-inset-bottom)) + 172px);font-size:13px;max-width:92vw}.cameraHint{display:none}#toast{top:30%;font-size:13px;padding:10px 40px}#dialog{gap:8px;bottom:14px}.portrait{width:52px;height:52px;font-size:28px;border-width:2px}.dialogBody{padding:24px 14px 12px;min-height:0}#speech{font-size:14px}#speaker{font-size:16px}#role{display:none}#bossHud{top:auto;bottom:calc(max(20px,env(safe-area-inset-bottom)) + 226px);width:230px}.panel{padding:22px 18px}.panel h2{font-size:28px}.ribbon{font-size:10px;letter-spacing:4px;padding:6px 20px}.intro{font-size:15px;max-width:280px}}
@media(max-height:550px){h1{font-size:76px}.ribbon{font-size:10px;padding:5px 22px}.intro{display:none}.menuButtons{margin-top:16px;gap:8px}.primary,.secondary{min-height:42px;padding:8px 16px;font-size:14px}.fine{display:none}#quest{width:300px}#quest strong{font-size:14px}#pauseMenu .pauseInfo{display:none}#pauseMenu .pauseGrid{grid-template-columns:1fr}#pauseMenu .pauseButtons{display:grid;grid-template-columns:1fr 1fr}#pauseMenu .pauseButtons .primary{grid-column:1/-1}.panel.wide{width:620px}#map{width:84px;height:84px}#flightHud{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 120px);left:max(22px,env(safe-area-inset-left));min-width:145px}#prompt{bottom:20px;max-width:34vw}.actions{bottom:max(12px,env(safe-area-inset-bottom))}#stick{bottom:max(16px,env(safe-area-inset-bottom))}#bossHud{top:max(8px,env(safe-area-inset-top));bottom:auto;width:210px;padding:4px 10px}#why,#sideObjective{display:none!important}.panel{padding:14px 18px}.panel.wide h2{font-size:28px;margin-bottom:10px}.panel h2{font-size:24px;margin:6px 0}.panel p{font-size:12px;margin:6px 0}.pauseButtons{gap:8px}.pauseButtons .primary,.pauseButtons .secondary{min-height:38px;padding:6px 12px;font-size:13px}.islandSelect{margin-top:10px;padding-top:8px}.islandSelect button{min-height:34px}#dialog{bottom:10px}.dialogBody{padding:22px 14px 10px;min-height:0}#speech{margin:2px 0 6px;min-height:0}.centered{place-items:start center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

#graphicsNotice{position:fixed;left:50%;top:max(5px,env(safe-area-inset-top));transform:translateX(-50%);z-index:10;padding:4px 8px;border-radius:7px;background:#123943db;color:#e6fff1;font:10px system-ui,sans-serif;white-space:nowrap;pointer-events:none}

/* ───── Questanzeige, Kompass, Tagebuch, Einstellungen, Abspann ───── */
#quest #why{display:block;font-style:italic;font-size:11px;color:#bcd4c8;margin-top:4px;line-height:1.35}
#quest #why:empty,#sideObjective:empty{display:none}
#compass{display:flex;align-items:center;gap:8px;margin-top:7px;padding-top:6px;border-top:1px solid #f4cc8133;font-size:12px;font-weight:800;color:var(--gold)}
#compassArrow{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f4cc8126;border:1px solid var(--gold);font-size:13px;line-height:1;transition:transform .12s linear}
#compassArrow::before{content:''}
#sideObjective{display:block;margin-top:6px;font-size:11px;color:var(--mint);line-height:1.35}
#journal{margin-left:8px}
#vignette.hurt{animation:hurt .45s ease-out}
@keyframes hurt{from{box-shadow:inset 0 0 160px #ff5a3daa}}
#flightHud.low #flightFill{background:linear-gradient(#ffd6c4,#ef8c5e)}
#flightHud.low #flightState::after{content:' · LANDEN ODER AUFWIND SUCHEN';color:#ffd3b4}
#perf{position:fixed;left:50%;bottom:max(4px,env(safe-area-inset-bottom));transform:translateX(-50%);background:#071e25d8;color:#d9f6e6;font:11px ui-monospace,monospace;padding:3px 8px;border-radius:6px;pointer-events:none;white-space:nowrap;z-index:5}
.skip{float:left;font-size:12px;font-weight:800;color:#bcd4c8;padding:6px 4px;text-decoration:underline}
.warn{color:#ffd3b4!important;max-width:320px}
.tabs{display:flex;gap:8px;justify-content:center;margin:-6px 0 16px;flex-wrap:wrap}
.tabs button{padding:8px 16px;border-radius:10px;border:2px solid #9decc855;background:#0b2a33;font-weight:900;font-size:13px;letter-spacing:1px;text-transform:uppercase;min-height:40px}
.tabs button.sel{background:linear-gradient(#fff7e0,#f4cc81);color:#3a2408;border-color:#fff7e0}
.tabs button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.journal{text-align:left;max-height:min(56vh,520px);overflow:auto;padding-right:6px;-webkit-overflow-scrolling:touch}
.jNow{background:#0006;border:1px solid var(--gold);border-radius:10px;padding:10px 12px;margin-bottom:12px}
.jNow small{font-size:10px;letter-spacing:2px;color:var(--gold);font-weight:800}.jNow strong{display:block;font-size:15px;margin:2px 0}.jNow span{font-size:12px;color:#c8ddd1}
.jChapter{border-top:1px solid #f4cc8133;padding:8px 0}
.jChapter h3{margin:0 0 6px;font-size:14px;color:var(--gold)}.jChapter h3 em{font-style:normal;color:var(--mint);font-size:12px;margin-left:6px}
.jChapter.locked h3{color:#7f948a}
.jSummary{margin:0 0 6px;font-size:12px!important;line-height:1.5!important;color:#d8e6dc}
.jQuest{font-size:13px;margin:6px 0}.jQuest i{font-style:normal;font-size:11px;color:#9fb8ab;margin-left:6px}.jQuest.side b{color:var(--mint)}
.jQuest ul,.jUpgrades{list-style:none;margin:4px 0 0;padding:0 0 0 14px;font-size:12px;line-height:1.6}
.jQuest li.done,.jUpgrades li.done{color:#9fb8ab}.jQuest li.cur{color:#fff3d3;font-weight:700}
.settings{display:grid;gap:8px;text-align:left;max-height:min(56vh,520px);overflow:auto;padding-right:6px}
.setRow{display:grid;grid-template-columns:1fr minmax(120px,170px) 52px;align-items:center;gap:10px;font-size:13px;font-weight:700}
.setRow output{font-size:12px;color:#c8ddd1;text-align:right}
.setRow input[type=range]{width:100%;accent-color:#f4cc81;height:32px}
.setRow input[type=range]:focus-visible{outline:2px solid var(--gold)}
.secondary.small,.primary.small{min-height:40px;padding:6px 10px;font-size:13px;text-transform:none;border-radius:10px}
#noticeText{text-align:left}#noticeText p{font-size:13px}
.credits{height:180px;overflow:hidden;position:relative;margin:4px 0 8px;mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent)}
.credits.roll .creditsRoll{animation:roll 26s linear forwards}
.credits:not(.roll){overflow:auto;mask-image:none;-webkit-mask-image:none}
.creditsRoll h3{font-size:14px;color:var(--gold);margin:14px 0 4px}
@keyframes roll{from{transform:translateY(170px)}to{transform:translateY(-100%)}}
body.reduced *,body.reduced *::before,body.reduced *::after{animation:none!important;transition:none!important}
body.uiLarge .actions{transform:scale(1.15);transform-origin:bottom right}
body.uiLarge #stick{transform:scale(1.15);transform-origin:bottom left}
body.uiLarge #quest strong{font-size:18px}body.uiLarge #detail{font-size:14px}body.uiLarge #speech{font-size:18px}
@media(max-width:650px){.panel.wide{padding:18px 14px}.tabs button{padding:6px 10px;font-size:12px}.setRow{grid-template-columns:1fr 130px 46px;font-size:12px}#journal{display:none}}
@media(max-height:550px){.journal,.settings{max-height:52vh}.tabs{margin:0 0 8px}.credits{height:110px}#quest #compass{margin-top:4px;padding-top:4px}}
/* Querformat mit wenig Höhe: Flügelkraft mittig unten zwischen Stick und Aktionstasten, Hinweis darüber. */
@media(max-height:550px){#flightHud{left:50%;transform:translateX(-50%);bottom:max(12px,env(safe-area-inset-bottom))}#prompt{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 64px)}#desktopHelp{display:none}}
.actions #dodge small{font-size:7.5px;letter-spacing:-.2px}
@media(max-height:550px){.cameraHint{display:none}}
/* ───── Kompakte Anzeige für Touch und niedrige Bildschirme (Handy quer) ───── */
.actions{width:216px;height:156px}
.actions button small{font-size:8px;margin-top:1px}
.actions #jump{right:0;bottom:0;width:80px;height:80px}
.actions #attack{right:92px;bottom:4px;width:62px;height:62px;font-size:24px}
.actions #fly{right:6px;bottom:92px;width:60px;height:60px;font-size:22px}
.actions #dodge{right:88px;bottom:80px;width:54px;height:54px;font-size:19px}
.actions #dodge small{font-size:8px;letter-spacing:0}
.actions #talk{right:162px;bottom:14px;width:52px;height:52px;font-size:18px}
#flightHud.low #flightState::after{content:' · AUFWIND SUCHEN'}
@media(pointer:coarse),(max-height:550px){
  #quest{width:250px;max-width:calc(100vw - 150px);padding:6px 10px 7px;border-radius:10px;top:calc(max(10px,env(safe-area-inset-top)) + 52px)}
  #questLabel{display:block;font-size:9px!important;letter-spacing:1px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #quest strong{font-size:14px;margin:2px 0}
  #detail{font-size:11px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #why,#sideObjective{display:none!important}
  #quest #compass{margin-top:4px;padding-top:4px;font-size:11px;gap:6px}
  #compassArrow{width:20px;height:20px;font-size:11px}
  #flightHud{min-width:0;width:190px;padding:5px 9px 6px}
  #flightHud small{font-size:9px;letter-spacing:1px;white-space:nowrap}
  .flightTrack{height:7px;margin-top:4px}
}
@media(max-height:550px){
  #hud{top:max(8px,env(safe-area-inset-top))}
  #quest{top:calc(max(8px,env(safe-area-inset-top)) + 62px)}
  #stick{width:104px;height:104px;bottom:max(12px,env(safe-area-inset-bottom))}
  #knob{left:27px;top:27px}
  #map{width:76px;height:76px;top:calc(max(8px,env(safe-area-inset-top)) + 50px)}
}
/* ───── Touch-Steuerung: großer Stick links, Aktionsrad rechts (Sprung groß unten, Flug oben, Wind links, Rolle rechts) ───── */
#touch #stick{width:136px;height:136px;left:max(22px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));background:radial-gradient(rgba(14,52,58,.30),rgba(9,34,40,.55));border:3px solid rgba(236,248,215,.32);box-shadow:none}
#touch #stick::before{content:'';position:absolute;inset:22px;border-radius:50%;border:2px dashed rgba(236,248,215,.38);pointer-events:none}
#touch #knob{width:58px;height:58px;left:36px;top:36px;background:radial-gradient(circle at 35% 30%,rgba(236,248,226,.95),rgba(170,214,198,.85));border:2px solid rgba(255,255,255,.7);box-shadow:0 3px 8px #0006}
#touch .actions{width:230px;height:214px;right:max(18px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));transform-origin:bottom right}
#touch .actions button{right:auto;bottom:auto;width:66px;height:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:24px;background:radial-gradient(circle at 35% 30%,rgba(42,107,106,.62),rgba(11,47,54,.72));border:3px solid rgba(236,248,215,.45);color:#fff3d3;box-shadow:0 4px 10px #0005;opacity:1}
#touch .actions button small{font-size:10px;font-weight:800;margin:0;letter-spacing:.3px;color:#fff3d3}
#touch .actions #fly{left:82px;top:0}
#touch .actions #attack{left:0;top:68px}
#touch .actions #dodge{left:164px;top:68px}
#touch .actions #jump{left:71px;top:126px;width:88px;height:88px;font-size:30px;background:radial-gradient(circle at 35% 30%,rgba(255,242,207,.96),rgba(215,154,72,.92));border-color:#fff7e0;color:#3a2408;box-shadow:0 4px 12px #0006}
#touch .actions #jump small{color:#3a2408;font-size:11px}
#touch .actions #fly.active{background:radial-gradient(circle at 35% 30%,rgba(198,255,233,.95),rgba(63,183,156,.9));color:#062c36}
#touch .actions #fly.active small{color:#062c36}
/* Reden erscheint nur, wenn jemand in der Nähe ist. */
#touch .actions #talk{left:2px;top:152px;width:56px;height:56px;font-size:19px;display:none}
#touch .actions #talk.ready{display:flex;border-color:var(--gold);box-shadow:0 0 0 3px #f4cc8166,0 4px 10px #0005}
#touch .actions button:active,#touch .actions button.held{transform:scale(.92);filter:brightness(1.25)}
@media(max-height:430px){#touch .actions{transform:scale(.86)}#touch #stick{width:120px;height:120px}#touch #knob{left:29px;top:29px}}
body.uiLarge #touch .actions{transform:scale(1.12)}
@media(max-width:470px){#touch .actions{transform:scale(.8)}#touch #stick{width:116px;height:116px;left:max(14px,env(safe-area-inset-left))}#touch #knob{left:26px;top:26px}#flightHud{width:116px!important;left:max(14px,env(safe-area-inset-left))!important;bottom:calc(max(18px,env(safe-area-inset-bottom)) + 128px)!important}#flightHud small{font-size:8px}}
