/* HUD-Schicht (Claude, 27.09.). Stil nach Adems Vorlage (Clash-Look): dicke dunkle
   Umrandung, glaenzende Oberhaelfte, 3D-Kante unten, weisse Schrift mit dunklem Rand,
   dunkelblaue Felder. Nur Aussehen und Lage; die Ausblende-Regeln der Spielzustaende
   (Kampf, Angeln, Ei-Szene, Uebersicht) bleiben gueltig, deshalb hier nie display mit !important. */
body[data-started]{
 --cr-rand:#141a33;
 --cr-panel:linear-gradient(#3a5a8f,#243a66);--cr-panel-dunkel:linear-gradient(#2b416d,#1b2b4f);--cr-panel-kante:#0f1a36;
 --cr-blau:linear-gradient(#9fdcff 0,#5cb2ff 46%,#3c8cf0 54%,#2f74d6);--cr-blau-k:#1d4d9e;
 --cr-orange:linear-gradient(#ffe587 0,#ffc53d 46%,#ffa414 54%,#f08a00);--cr-orange-k:#a65400;
 --cr-gruen:linear-gradient(#b4f78a 0,#72e04c 46%,#4fc437 54%,#39a52a);--cr-gruen-k:#1f6b18;
 --cr-violett:linear-gradient(#f2bcff 0,#d57cff 46%,#b457ee 54%,#9a3fd6);--cr-violett-k:#5e1e8f;
 --hud-text:#fff;--hud-gold:#ffd23f;--hud-gruen:#72e04c;--hud-violett:#c77dff;--hud-pink:#ff8fd0;--hud-blau:#5cb2ff;
 --cr-font:'Segoe UI Black','Arial Black',system-ui,sans-serif;
 --cr-umriss:0 2px 0 var(--cr-rand),1.5px 1.5px 0 var(--cr-rand),-1.5px 1.5px 0 var(--cr-rand),1.5px -1px 0 var(--cr-rand),-1.5px -1px 0 var(--cr-rand);
 --cr-glanz:inset 0 2px 0 rgba(255,255,255,.55),inset 0 -3px 0 rgba(0,0,0,.16);
 --cr-knopf:var(--cr-glanz),0 4px 0 var(--k,#1d4d9e),0 5.5px 0 var(--cr-rand),0 9px 12px rgba(8,12,30,.35);
 --cr-knopf-tief:var(--cr-glanz),0 1px 0 var(--k,#1d4d9e),0 2.5px 0 var(--cr-rand),0 3px 6px rgba(8,12,30,.3);
 --cr-feld:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -2px 0 rgba(0,0,0,.25),0 3px 0 var(--cr-panel-kante),0 6px 10px rgba(8,12,30,.3);
 --cr-abzeichen:url("data:image/svg+xml,%3Csvg xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox%3D'-2 -2 52 52'%3E%3Cdefs%3E%3ClinearGradient id%3D'g' x1%3D'0' y1%3D'0' x2%3D'0' y2%3D'1'%3E%3Cstop offset%3D'0' stop-color%3D'%239fdcff'%2F%3E%3Cstop offset%3D'.48' stop-color%3D'%234aa6ff'%2F%3E%3Cstop offset%3D'.52' stop-color%3D'%232f84ec'%2F%3E%3Cstop offset%3D'1' stop-color%3D'%231f5fc4'%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpolygon points%3D'24.0 1.0 28.9 5.6 35.5 4.1 37.4 10.6 43.9 12.5 42.4 19.1 47.0 24.0 42.4 28.9 43.9 35.5 37.4 37.4 35.5 43.9 28.9 42.4 24.0 47.0 19.1 42.4 12.5 43.9 10.6 37.4 4.1 35.5 5.6 28.9 1.0 24.0 5.6 19.1 4.1 12.5 10.6 10.6 12.5 4.1 19.1 5.6' fill%3D'url(%23g)' stroke%3D'%23141a33' stroke-width%3D'3' stroke-linejoin%3D'round'%2F%3E%3Ccircle cx%3D'24' cy%3D'24' r%3D'14' fill%3D'none' stroke%3D'%23ffffff' stroke-opacity%3D'.35' stroke-width%3D'2'%2F%3E%3C%2Fsvg%3E");
 --hud-oben:max(10px,env(safe-area-inset-top,0px));--hud-unten:max(12px,env(safe-area-inset-bottom,0px));
 --hud-links:max(12px,env(safe-area-inset-left,0px));--hud-rechts:max(12px,env(safe-area-inset-right,0px));
 --hud-feder:cubic-bezier(.3,1.4,.5,1)}

/* --- Oben: Stufe links (Abzeichen + Balken), Muenzen rechts, Uhr klein in der Mitte */
body[data-started]:not(#_h):not(#_u) #hud{top:calc(var(--hud-oben) + 4px)!important;left:calc(var(--hud-links) + 6px)!important;right:var(--hud-rechts)!important;pointer-events:none}
body[data-started]:not(#_h):not(#_u) #hud .resources{display:flex;justify-content:space-between;align-items:center;width:100%;gap:8px}
body[data-started]:not(#_h):not(#_u) #hud :is(button,div,a){pointer-events:auto}
body[data-started]:not(#_h):not(#_u) #level-button{position:relative;height:30px!important;width:84px!important;min-width:0!important;max-width:none!important;padding:0!important;border-radius:9px!important;
 background:var(--cr-panel-dunkel)!important;border:2px solid var(--cr-rand)!important;box-shadow:var(--cr-feld)!important;color:var(--hud-text)!important;overflow:visible}
body[data-started]:not(#_h):not(#_u) #level-button::before{content:'';position:absolute;left:-10px;top:50%;width:44px;height:44px;margin-top:-22px;border:0;border-radius:0;box-shadow:none;background:var(--cr-abzeichen) center/contain no-repeat;filter:drop-shadow(0 3px 0 rgba(8,12,30,.45))}
body[data-started]:not(#_h):not(#_u) #level{position:absolute;left:-10px;top:50%;width:44px;margin-top:-9px;z-index:1;text-align:center;color:#fff!important;font:900 17px/18px var(--cr-font)!important;text-shadow:var(--cr-umriss);background:none!important;padding:0!important}
body[data-started]:not(#_h):not(#_u) #level-button small{display:none!important}
body[data-started]:not(#_h):not(#_u) #level-button>div{width:0!important;min-width:0!important;flex:none!important;padding:0!important;margin:0!important}
body[data-started]:not(#_h):not(#_u) #level-button .xp-track{position:absolute!important;left:38px;right:6px;top:50%;bottom:auto;width:auto!important;height:12px!important;margin:-6px 0 0!important;border-radius:5px!important;background:#101a36!important;box-shadow:inset 0 2px 0 rgba(0,0,0,.35);overflow:hidden}
body[data-started]:not(#_h):not(#_u) #xp{background:linear-gradient(#9ff0ff 0,#4fd3ff 45%,#26a8f0 55%,#1f8fdc)!important;border-radius:5px;box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)}
body[data-started]:not(#_h):not(#_u) #coins{color:#fff!important;font:900 16px/1 var(--cr-font)!important;font-variant-numeric:tabular-nums;text-shadow:var(--cr-umriss)}
body[data-started]:not(#_h):not(#_u) #hud .resources>div:has(#coins){position:relative;height:30px;display:flex;flex-direction:row-reverse;align-items:center;gap:6px;padding:0 30px 0 14px;margin-right:10px;border-radius:9px;background:var(--cr-panel-dunkel)!important;box-shadow:var(--cr-feld)!important;border:2px solid var(--cr-rand)!important}
body[data-started]:not(#_h):not(#_u) .coin-icon{position:absolute;right:-14px;top:50%;margin-top:-19px;width:38px;height:38px;font-size:0!important;color:transparent!important;background:var(--ico) center/contain no-repeat!important;border:0!important;box-shadow:none!important;filter:drop-shadow(0 2px 0 var(--cr-rand)) drop-shadow(0 3px 2px rgba(8,12,30,.4))}
body[data-started]:not(#_h):not(#_u) .resources>div.hud-plus{animation:hud-plus .3s var(--hud-feder)}
@keyframes hud-plus{40%{transform:scale(1.14);box-shadow:0 0 0 3px var(--hud-gold),0 0 18px rgba(255,210,63,.7)}}
body[data-started]:not(#_h):not(#_u) #uhr{top:calc(var(--hud-oben) + 9px)!important;background:var(--cr-panel-dunkel)!important;color:#fff!important;font:800 10px/1 system-ui,sans-serif!important;padding:5px 7px!important;border:2px solid var(--cr-rand)!important;border-radius:8px!important;box-shadow:var(--cr-feld)!important;text-shadow:0 1px 0 var(--cr-rand);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* --- Zweite Reihe: Auftrag als Feld, Ereignis als violetter Knopf ------------------ */
body[data-started]:not(#_h):not(#_u) #quest{position:fixed!important;top:calc(var(--hud-oben) + 52px)!important;left:var(--hud-links)!important;right:auto!important;max-width:min(62vw,250px)!important;
 height:38px;padding:0 4px!important;gap:6px!important;border-radius:11px!important;border:2px solid var(--cr-rand)!important;background:var(--cr-panel)!important;box-shadow:var(--cr-feld)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;z-index:6}
body[data-started]:not(#_h):not(#_u) .quest-icon{width:28px;height:28px;flex:none;font-size:0!important;border-radius:8px;background:var(--ico) center/20px no-repeat,var(--cr-orange)!important;border:2px solid var(--cr-rand);box-shadow:var(--cr-glanz)}
body[data-started]:not(#_h):not(#_u) #quest>div{min-width:0;gap:0!important}
body[data-started]:not(#_h):not(#_u) #quest small,body[data-started]:not(#_h):not(#_u) #quest-title{display:none}
body[data-started]:not(#_h):not(#_u) #quest-progress{color:#fff!important;font:800 11.5px/1.2 system-ui,sans-serif!important;text-shadow:0 1.5px 0 var(--cr-rand);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-started]:not(#_h):not(#_u) #quest #claim{--k:var(--cr-blau-k);width:28px;height:26px;flex:none;padding:0!important;margin:0 0 3px!important;border-radius:8px!important;font:900 14px/22px var(--cr-font)!important;color:#fff!important;text-align:center;text-shadow:var(--cr-umriss);background:var(--cr-blau)!important;border:2px solid var(--cr-rand)!important;box-shadow:var(--cr-glanz),0 2px 0 var(--k)!important}
body[data-started]:not(#_h):not(#_u) #quest.ready #claim{--k:var(--cr-gruen-k);background:var(--cr-gruen)!important}
body[data-started]:not(#_h):not(#_u) #quest.ready{box-shadow:0 0 0 3px var(--hud-gruen),var(--cr-feld)!important}

body[data-started]:not(#_h):not(#_u) #event-banner{--k:var(--cr-violett-k);top:calc(var(--hud-oben) + 100px)!important;left:var(--hud-links)!important;right:auto!important;bottom:auto!important;transform:none!important;margin:0!important;
 width:44px;height:44px;min-width:0!important;max-width:none!important;padding:0!important;border-radius:12px!important;overflow:hidden;white-space:nowrap;font-size:0!important;color:transparent!important;
 background:var(--cr-violett)!important;border:2px solid var(--cr-rand)!important;box-shadow:var(--cr-knopf)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 pointer-events:auto!important;cursor:pointer;z-index:7;transition:width .25s var(--hud-feder)}
body[data-started]:not(#_h):not(#_u) #event-banner::before{content:'';position:absolute;left:6px;top:6px;width:28px;height:28px;background:var(--ico) center/contain no-repeat}
body[data-started]:not(#_h):not(#_u) #event-banner.offen:not([hidden]){width:min(78vw,300px);height:auto;min-height:44px;padding:8px 12px 8px 42px!important;white-space:normal;font:800 11.5px/1.3 system-ui,sans-serif!important;color:#fff!important;text-shadow:0 1.5px 0 var(--cr-rand);display:flex;align-items:center}
body[data-started]:not(#_h):not(#_u) #event-banner{position:fixed}

/* --- Rechte Spalte: blaue Klotzknoepfe; 3-in-1-Ansicht mit drei Punkten ----------- */
body[data-started]:not(#_h):not(#_u) .view-controls{top:calc(var(--hud-oben) + 50px)!important;right:var(--hud-rechts)!important;gap:13px!important;align-items:flex-end;background:none!important;box-shadow:none!important;border:0!important;padding:0!important}
body[data-started]:not(#_h):not(#_u) .view-controls>button:not([hidden]){--k:var(--cr-blau-k);position:relative;width:46px!important;height:46px!important;border-radius:12px!important;font-size:0!important;color:transparent!important;text-shadow:none!important;
 background:var(--ico) center/26px no-repeat,var(--cr-blau)!important;border:2px solid var(--cr-rand)!important;box-shadow:var(--cr-knopf)!important}
body[data-started]:not(#_h):not(#_u) .view-controls>button:not([data-hud-ico]){font:900 20px/1 var(--cr-font)!important;color:#fff!important;text-shadow:var(--cr-umriss)!important}
body[data-started]:not(#_h):not(#_u) .view-controls hr,body[data-started]:not(#_h):not(#_u) .view-controls .divider{display:none}
body[data-started]:not(#_h):not(#_u) .view-controls #archive-open em{position:absolute;right:-7px;top:-7px;bottom:auto;font:900 10px/15px var(--cr-font)!important;min-width:16px;height:17px;padding:0 4px;border-radius:6px;color:#fff!important;text-shadow:0 1px 0 var(--cr-rand);background:var(--cr-gruen)!important;border:2px solid var(--cr-rand)!important}
body[data-started]:not(#_h):not(#_u) #ansicht-knopf{--k:var(--cr-violett-k);background:var(--ico) 50% 32%/23px no-repeat,var(--cr-violett)!important}
/* Potenzial-Brille (Claude 28.09.): blauer Klotz wie die anderen, an = violett; Symbol ist das Emoji im span */
body[data-started]:not(#_h):not(#_u) .view-controls>#spar-knopf{background:var(--cr-blau)!important;font:22px/1 system-ui,sans-serif!important;color:#fff!important}
body[data-started]:not(#_h):not(#_u) .view-controls>#spar-knopf.an{--k:var(--cr-violett-k);background:var(--cr-violett)!important}
body[data-started]:not(#_h):not(#_u) .view-controls>#brille-knopf{background:var(--cr-blau)!important;font:22px/1 system-ui,sans-serif!important;color:#fff!important}
body[data-started]:not(#_h):not(#_u) .view-controls>#brille-knopf.an{--k:var(--cr-violett-k);background:var(--cr-violett)!important}
#ansicht-knopf span{position:absolute;bottom:4px;width:6px;height:6px;border-radius:50%;background:rgba(20,26,51,.45)}
#ansicht-knopf span:nth-child(1){left:calc(50% - 12px)}#ansicht-knopf span:nth-child(2){left:calc(50% - 3px)}#ansicht-knopf span:nth-child(3){left:calc(50% + 6px)}
#ansicht-knopf[data-ansicht=first] span:nth-child(1),#ansicht-knopf[data-ansicht=third] span:nth-child(2),#ansicht-knopf[data-ansicht=overview] span:nth-child(3){background:#fff;box-shadow:0 0 0 1.5px var(--cr-rand)}
#ansicht-knopf.wechsel{animation:hud-wechsel .25s var(--hud-feder)}
@keyframes hud-wechsel{40%{background-size:30px,auto}}
/* Karte + Beschriftung (02.10.): Tester fanden Ansicht und Uebersicht nicht. Kleine Schrift unter den zwei Knoepfen. */
body[data-started]:not(#_h):not(#_u) #karte-knopf{--k:var(--cr-gruen-k);background:var(--ico) 50% 34%/25px no-repeat,var(--cr-gruen)!important}
body[data-started]:not(#_h):not(#_u) .view-controls>:is(#ansicht-knopf,#karte-knopf){margin-bottom:9px}
body[data-started]:not(#_h):not(#_u) .view-controls>:is(#ansicht-knopf,#karte-knopf)::after{position:absolute;left:50%;top:calc(100% + 1px);transform:translateX(-50%);white-space:nowrap;
 font:900 10px/1 var(--cr-font,system-ui),system-ui,sans-serif;letter-spacing:.02em;color:#fff;text-shadow:0 1px 0 #141a33,1px 0 0 #141a33,-1px 0 0 #141a33,0 -1px 0 #141a33;pointer-events:none}
body[data-started]:not(#_h):not(#_u) #ansicht-knopf::after{content:'Ansicht'}
body[data-started]:not(#_h):not(#_u) #karte-knopf::after{content:'Karte'}
body[data-started]:not(#_h):not(#_u) #karte-knopf[data-an=true]::after{content:'Zurück'}
#hud-blase{position:fixed;z-index:59;transform:translateY(-50%);max-width:min(240px,60vw);padding:8px 12px;border-radius:14px;background:#fff;color:#141a33;font:800 13px/1.25 system-ui,sans-serif;border:2.5px solid #141a33;box-shadow:0 4px 0 #141a33;pointer-events:none}
#hud-blase::after{content:'';position:absolute;right:-9px;top:50%;margin-top:-7px;border:7px solid transparent;border-left:9px solid #141a33;border-right:0}
#hud-blase[hidden]{display:none}

/* doppelte Aktionszeile weg, sobald der Aktionsknopf da ist */
body[data-started]:not(#_h):not(#_u):has(#walk-action:not([hidden])) #island-context{visibility:hidden}

/* --- Unten links: Stick als dunkler Ring mit blauem Knauf ------------------------ */
body[data-started]:not(#_h):not(#_u) #walk-stick{left:calc(var(--hud-links) + 6px)!important;bottom:calc(var(--hud-unten) + 108px)!important;width:100px!important;height:100px!important;
 background:radial-gradient(circle,rgba(20,26,51,.12),rgba(20,26,51,.38))!important;border:3px solid rgba(20,26,51,.6)!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.28)}
body[data-started]:not(#_h):not(#_u) #walk-stick i{width:46px!important;height:46px!important;background:var(--cr-blau)!important;border:2px solid var(--cr-rand)!important;box-shadow:var(--cr-glanz),0 3px 0 var(--cr-blau-k),0 5px 8px rgba(8,12,30,.35)}
body[data-started]:not(#_h):not(#_u) #walk-stick span{display:none}

/* --- Unten rechts: grosser oranger Aktionsknopf, Nebenknoepfe drumherum ----------- */
body[data-started]:not(#_h):not(#_u) #walk-action{--k:var(--cr-orange-k);right:var(--hud-rechts)!important;bottom:calc(var(--hud-unten) + 98px)!important;left:auto!important;top:auto!important;
 width:94px!important;height:88px!important;min-height:0!important;max-width:none!important;padding:50px 5px 0!important;border-radius:20px!important;
 font:900 11px/1.05 var(--cr-font)!important;letter-spacing:.01em;text-align:center;overflow:hidden;white-space:normal;
 background:var(--cr-orange)!important;border:2.5px solid var(--cr-rand)!important;color:#fff!important;text-shadow:var(--cr-umriss)!important;
 box-shadow:var(--cr-knopf)!important;z-index:8}
body[data-started]:not(#_h):not(#_u) #walk-action::before{content:'';position:absolute;left:50%;top:7px;width:40px;height:40px;margin-left:-20px;background:var(--ico,none) center/contain no-repeat;filter:drop-shadow(0 2px 0 rgba(20,26,51,.35));pointer-events:none}

body[data-started]:not(#_h):not(#_u) :is(#walk-jump,#walk-pose,#reit-knopf){--k:var(--cr-blau-k);min-height:0!important;max-width:none!important;padding:0!important;border-radius:14px!important;font-size:0!important;color:transparent!important;text-shadow:none!important;overflow:hidden;
 background:var(--ico) center/58% no-repeat,var(--cr-blau)!important;border:2px solid var(--cr-rand)!important;box-shadow:var(--cr-knopf)!important;left:auto!important;top:auto!important;transform:none}
body[data-started]:not(#_h):not(#_u) :is(#walk-jump,#walk-pose,#reit-knopf) *{display:none}
body[data-started]:not(#_h):not(#_u) #walk-jump::after{display:none}
body[data-started]:not(#_h):not(#_u) #walk-jump{width:58px!important;height:58px!important;right:calc(var(--hud-rechts) + 18px)!important;bottom:calc(var(--hud-unten) + 204px)!important}
body[data-started]:not(#_h):not(#_u) #reit-knopf{--k:var(--cr-violett-k);width:54px!important;height:54px!important;right:calc(var(--hud-rechts) + 106px)!important;bottom:calc(var(--hud-unten) + 170px)!important;background:var(--ico) center/58% no-repeat,var(--cr-violett)!important}
body[data-started]:not(#_h):not(#_u) #walk-pose{width:48px!important;height:48px!important;right:calc(var(--hud-rechts) + 108px)!important;bottom:calc(var(--hud-unten) + 238px)!important}

/* --- Begleiter: Karten-Portraets links unter dem Auftrag ------------------------ */
body[data-started]:not(#_h):not(#_u) #team-leiste{left:var(--hud-links)!important;top:calc(var(--hud-oben) + 158px)!important;bottom:auto!important;transform:none!important;flex-direction:column;gap:14px!important}
body[data-started]:not(#_h):not(#_u) #team-leiste button{width:46px!important;height:46px!important;border-radius:12px!important;background:var(--cr-violett)!important;border:2px solid var(--cr-rand)!important;box-shadow:var(--cr-glanz),0 3px 0 var(--cr-violett-k),0 4.5px 0 var(--cr-rand)!important}
body[data-started]:not(#_h):not(#_u) #team-leiste button.tl-aktiv{background:var(--cr-orange)!important;box-shadow:0 0 0 3px var(--hud-gold),var(--cr-glanz),0 3px 0 var(--cr-orange-k),0 4.5px 0 var(--cr-rand),0 0 14px rgba(255,210,63,.6)!important}
body[data-started]:not(#_h):not(#_u) #team-leiste b{background:var(--cr-blau)!important;color:#fff!important;border:2px solid var(--cr-rand)!important;font-family:var(--cr-font)!important;font-weight:900!important;text-shadow:0 1px 0 var(--cr-rand)}

/* --- Unten Mitte: Inventar als dunkle Leiste mit Kartenfaechern ------------------ */
body[data-started]:not(#_h):not(#_u) #quickbar{bottom:var(--hud-unten)!important;padding:6px!important;gap:6px!important;background:var(--cr-panel-dunkel)!important;border:2px solid var(--cr-rand)!important;border-radius:16px!important;
 box-shadow:var(--cr-feld)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;max-width:calc(100vw - 16px)}
body[data-started]:not(#_h):not(#_u) #quickbar button:not(.rs-mehr){--k:#8aa0c4;width:52px!important;height:60px!important;border-radius:11px!important;background:linear-gradient(#ffffff 0,#eef4ff 46%,#dce8fb 54%,#c9d9f2)!important;border:2px solid var(--cr-rand)!important;
 box-shadow:var(--cr-glanz),0 3px 0 var(--k)!important;color:#4a3b30!important;text-shadow:none!important;transition:transform .18s var(--hud-feder)!important}
body[data-started]:not(#_h):not(#_u) #quickbar button:not(.rs-mehr):not(:has(img,svg,canvas)){background:rgba(8,14,34,.45)!important;border-color:rgba(8,14,34,.7)!important;box-shadow:inset 0 2px 0 rgba(0,0,0,.3)!important}
body[data-started]:not(#_h):not(#_u) #quickbar button.rucksack{--k:var(--cr-violett-k);background:var(--cr-violett)!important}
body[data-started]:not(#_h):not(#_u) #quickbar button.selected{transform:translateY(-6px) scale(1.08)!important;box-shadow:0 0 0 3px var(--hud-gold),var(--cr-glanz),0 3px 0 var(--k),0 8px 12px rgba(8,12,30,.45)!important;z-index:1}
body[data-started]:not(#_h):not(#_u) #quickbar .rucksack::before{background:rgba(255,255,255,.25)!important}
body[data-started]:not(#_h):not(#_u) #quickbar .rs-mehr{color:#fff!important;font-weight:900!important;text-shadow:var(--cr-umriss)}
body[data-started]:not(#_h):not(#_u) #quickbar b{border:2px solid var(--cr-rand)!important;font-family:var(--cr-font)!important;font-weight:900!important}
body[data-started]:not(#_h):not(#_u) #quickbar small{color:#fff!important;font-weight:900!important;text-shadow:0 1px 0 var(--cr-rand),1px 0 0 var(--cr-rand),-1px 0 0 var(--cr-rand),0 -1px 0 var(--cr-rand)}
body[data-started]:not(#_h):not(#_u) #quickbar .qb-zweck{background:var(--cr-panel-dunkel)!important;color:#fff!important;border:1.5px solid var(--cr-rand)}
body[data-started]:not(#_h):not(#_u) #qb-name{bottom:calc(var(--hud-unten) + 82px)!important;background:var(--cr-panel-dunkel)!important;color:#fff!important;border:2px solid var(--cr-rand)!important;border-radius:9px;font-weight:900!important;text-shadow:0 1.5px 0 var(--cr-rand);box-shadow:var(--cr-feld)!important}
body[data-started]:not(#_h):not(#_u) #toast{background:var(--cr-panel)!important;color:#fff!important;font-weight:800;text-shadow:0 1.5px 0 var(--cr-rand);border:2px solid var(--cr-rand)!important;border-radius:12px!important;box-shadow:var(--cr-feld)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

body[data-started]:not(#_h):not(#_u) #quickbar b.hud-zahl{animation:hud-zahl .3s var(--hud-feder)}
@keyframes hud-zahl{40%{transform:scale(1.45)}}

/* --- Druck-Feedback: Klotzknoepfe sinken auf ihre Kante, der Rest federt -------- */
body[data-started]:not(#_h):not(#_u) :is(#level-button,.view-controls>button,#quest #claim,#event-banner,#walk-action,#walk-jump,#walk-pose,#reit-knopf,#team-leiste button){transition:transform .15s var(--hud-feder),box-shadow .15s!important}
body[data-started]:not(#_h):not(#_u) :is(.view-controls>button,#event-banner,#walk-action,#walk-jump,#walk-pose,#reit-knopf):active{transform:translateY(3px)!important;box-shadow:var(--cr-knopf-tief)!important;transition-duration:.06s!important}
body[data-started]:not(#_h):not(#_u) :is(#level-button,#quest #claim,#team-leiste button,#quickbar button):active{transform:scale(.92)!important;transition-duration:.08s!important}

/* --- Ereignis-Auftritt, Finger, Puls ------------------------------------------ */
#hud-intro{position:fixed;z-index:60;left:50%;top:32%;display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none;transform:translate(-50%,-50%) scale(.6);opacity:0}
#hud-intro[hidden]{display:none}
#hud-intro i{width:96px;height:96px;border-radius:24px;background:var(--ico) center/64% no-repeat,linear-gradient(#f2bcff 0,#d57cff 46%,#b457ee 54%,#9a3fd6);border:3px solid #141a33;
 box-shadow:inset 0 3px 0 rgba(255,255,255,.55),inset 0 -4px 0 rgba(0,0,0,.16),0 6px 0 #5e1e8f,0 8px 0 #141a33,0 0 40px rgba(199,125,255,.6)}
#hud-intro b{color:#fff;font:900 24px/1 'Segoe UI Black','Arial Black',system-ui,sans-serif;letter-spacing:.02em;
 text-shadow:0 3px 0 #141a33,2px 2px 0 #141a33,-2px 2px 0 #141a33,2px -2px 0 #141a33,-2px -2px 0 #141a33}
#hud-intro.an{animation:hud-rein .3s cubic-bezier(.3,1.4,.5,1) forwards}
#hud-intro.weg{animation:hud-flug .42s ease-in forwards}
@keyframes hud-rein{to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes hud-flug{from{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;left:34px;top:132px;transform:translate(-50%,-50%) scale(.3)}}
#hud-finger{position:fixed;z-index:59;width:46px;height:46px;margin:-6px 0 0 -14px;pointer-events:none;background:var(--ico) center/contain no-repeat;filter:drop-shadow(0 3px 0 rgba(20,26,51,.6));animation:hud-tipp 1.1s ease-in-out infinite}
#hud-finger.zug{animation:hud-zug 1.6s ease-in-out infinite}
#hud-finger[hidden],#hud-ring[hidden]{display:none}
@keyframes hud-tipp{0%,100%{transform:translate(0,10px)}45%{transform:translate(0,0) scale(.92)}}
@keyframes hud-zug{0%{transform:translate(0,0);opacity:0}15%{opacity:1}70%{transform:translate(0,-34px);opacity:1}100%{transform:translate(0,-34px);opacity:0}}
#hud-ring{position:fixed;z-index:9;border-radius:22px;pointer-events:none;box-shadow:0 0 0 4px #fff,0 0 0 6px #141a33;animation:hud-puls 1.1s ease-out infinite}
@keyframes hud-puls{from{transform:scale(1);opacity:.9}to{transform:scale(1.3);opacity:0}}
body:has(#expedition-kampf:not([hidden])) :is(#hud-intro,#hud-finger,#hud-ring,#hud-blase),body.ei-szene :is(#hud-finger,#hud-ring,#hud-blase){display:none!important}

/* --- Kontext-Fenster: Verkaufen = Inhalt -> Wert -> ein grosser gruener Knopf ----- */
body[data-started]:not(#_h):not(#_u) #sheet .valuation{font-size:15px}
body[data-started]:not(#_h):not(#_u) #sheet .valuation strong{font-size:22px;color:#b0761c}
body[data-started]:not(#_h):not(#_u) #sheet #sell-rucksack{--k:var(--cr-gruen-k);display:flex;width:100%;min-height:58px;justify-content:center;align-items:center;font:900 19px/1 var(--cr-font)!important;letter-spacing:.03em;border-radius:16px!important;color:#fff!important;text-shadow:var(--cr-umriss);
 background:var(--cr-gruen)!important;border:2.5px solid var(--cr-rand)!important;box-shadow:var(--cr-knopf)!important;margin-bottom:8px;transition:transform .15s var(--hud-feder),box-shadow .15s}
body[data-started]:not(#_h):not(#_u) #sheet #sell-rucksack:active{transform:translateY(3px)!important;box-shadow:var(--cr-knopf-tief)!important}
body[data-started]:not(#_h):not(#_u) #sheet #sell-rucksack:disabled{background:#c9ccd6!important;color:#f4f5f8!important;box-shadow:0 3px 0 #8a8fa0,0 4.5px 0 var(--cr-rand)!important}

/* Rucksack-Panel (27.09.): klappt beim Antippen des Rucksacks ueber der Leiste auf */
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt{left:50%!important;right:auto!important;transform:translateX(-50%);bottom:calc(var(--hud-unten) + 84px)!important;width:min(320px,calc(100vw - 32px));max-width:none!important;box-sizing:border-box;padding:14px 14px 12px!important;background:rgba(22,32,58,.86)!important;-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);border:1px solid rgba(255,255,255,.12)!important;border-radius:20px!important;box-shadow:0 18px 40px rgba(8,12,28,.38)!important;color:#fff!important;font-family:'Segoe UI',system-ui,sans-serif;z-index:12!important;animation:rs-auf .22s var(--hud-feder)}
@keyframes rs-auf{from{opacity:0;transform:translateX(-50%) translateY(12px) scale(.96)}}
/* Tasche (28.09.): ruhig und leicht - duenne Kanten, Glas, kleine Zahlen, nichts Aufgedruecktes */
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt header{display:flex;align-items:baseline;gap:8px}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt header b{font:700 16px/1 'Segoe UI',system-ui,sans-serif;letter-spacing:.01em;color:#fff;text-shadow:none}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt header em{font:600 12px/1 'Segoe UI',system-ui,sans-serif;font-style:normal;color:rgba(255,255,255,.5);text-shadow:none}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt [data-zu]{margin-left:auto;align-self:center;width:28px;height:28px;padding:0;border-radius:50%;background:rgba(255,255,255,.08);border:0;color:rgba(255,255,255,.75);font:600 13px/1 'Segoe UI',system-ui,sans-serif;text-shadow:none;box-shadow:none}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt [data-zu]:active{background:rgba(255,255,255,.18)}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-scroll{display:block;max-height:40vh;overflow:auto;margin-top:12px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt h4{display:flex;align-items:baseline;gap:6px;margin:12px 2px 7px;color:rgba(255,255,255,.5);font:700 10.5px/1 'Segoe UI',system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;text-shadow:none}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt h4:first-child{margin-top:0}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt h4 small{margin-left:auto;color:rgba(255,255,255,.35);font:500 10.5px/1 'Segoe UI',system-ui,sans-serif;letter-spacing:0;text-transform:none}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-kacheln{display:grid;grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:6px;padding:0 0 2px}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-kacheln :is(span,button){position:relative;display:grid;place-items:center;width:auto;height:48px;margin:0;padding:0;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);box-shadow:none;color:inherit;font-size:22px}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-kacheln .ico{width:28px;height:28px}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-kacheln :is(span,button) i{position:absolute;left:5px;top:4px;font:700 10px/1 'Segoe UI',system-ui,sans-serif;font-style:normal;color:rgba(255,255,255,.8)}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-kacheln :is(span,button) em{position:absolute;right:5px;bottom:4px;font:700 10.5px/1 'Segoe UI',system-ui,sans-serif;font-style:normal;color:rgba(255,255,255,.85);background:none;border:0;padding:0}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-kacheln button{cursor:pointer;touch-action:manipulation;transition:background .15s,border-color .15s,transform .1s}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-kacheln button:active{transform:scale(.94)}
@media (hover:hover){body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-kacheln button:hover{background:rgba(255,255,255,.13)}}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-kacheln .auf-leiste{background:rgba(255,210,63,.08);border-color:rgba(255,210,63,.32)}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-kacheln .auf-leiste i{color:var(--hud-gold)}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt .rs-scroll p{grid-column:1/-1;margin:0 2px 2px;color:rgba(255,255,255,.45);font:500 12px/1.3 'Segoe UI',system-ui,sans-serif}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt footer{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08)}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt footer small{margin:0;color:rgba(255,255,255,.6);font:600 12px/1.1 'Segoe UI',system-ui,sans-serif;text-shadow:none}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt footer button{margin-left:auto;padding:7px 13px;border-radius:999px;background:rgba(255,255,255,.1);border:0;color:#fff;font:600 12px/1 'Segoe UI',system-ui,sans-serif;text-shadow:none;box-shadow:none}
body[data-started]:not(#_h):not(#_u) #rucksack-inhalt footer button:active{background:rgba(255,255,255,.2)}
body:has(#expedition-kampf:not([hidden])) #rucksack-inhalt,body[data-view=overview] #rucksack-inhalt{visibility:hidden}

@media (prefers-reduced-motion:reduce){#hud-finger,#hud-ring,#hud-intro.an,#hud-intro.weg,#ansicht-knopf.wechsel,#rucksack-inhalt{animation:none}#hud-intro.an{opacity:1;transform:translate(-50%,-50%)}}
/* Starterwahl: deaktivierter Knopf gut lesbar (statt blass-beige) */
#sw-los:disabled{opacity:1;filter:none;background:#e4dfd0;color:#4b5a4f;text-shadow:none;box-shadow:inset 0 0 0 2px #b9b29c}
#sw-los:disabled::after{display:none}
#sw-los:disabled span{opacity:.6}
/* Meldungs-Warteschlange (28.09.): nichts ueber offenen Blaettern/Menues; Hinweis nie ueber Joystick/Aktionsknopf */
body:has(#sheet:not([hidden]),#menu-panel:not([hidden]),#rucksack-inhalt:not([hidden]),#premium-shop:not([hidden])) :is(#toast,#hint,#hud-intro,#event-banner.offen){visibility:hidden!important}
body:has(#walk-stick:not([hidden])):not([data-view=overview]) #hint{display:none!important}
#uhr{pointer-events:auto!important;cursor:pointer}
/* HUD aufraeumen (28.09.): Knoepfe erst nach Freischaltung (body[data-frei] kommt aus app.mjs) */
body:not([data-frei~=bauen]) :is(#bau-menu,#bau-abriss),body:not([data-frei~=brille]) #brille-knopf,body:not([data-frei~=laterne]) #laterne-knopf{display:none!important}
/* Duo 3+3 (Claude 28.09.): Zusatzplaetze etwas kleiner, bei wenig Hoehe enger - alles bleibt erreichbar. */
body[data-started]:not(#_h):not(#_u) #team-leiste:has(.tl-duo){gap:9px!important}
body[data-started]:not(#_h):not(#_u) #team-leiste button.tl-duo{width:40px!important;height:40px!important;margin-left:3px;border-color:#ff8fa0!important}
body[data-started]:not(#_h):not(#_u) #team-leiste .tl-herz{margin:-4px 0 -4px 17px;font-size:12px}
@media(max-height:560px){body[data-started]:not(#_h):not(#_u) #team-leiste:has(.tl-duo){top:calc(var(--hud-oben) + 96px)!important;flex-flow:column wrap;max-height:126px;align-content:flex-start;gap:6px!important;column-gap:10px!important}body[data-started]:not(#_h):not(#_u) #team-leiste:has(.tl-duo) button{width:38px!important;height:38px!important;margin-left:0}body[data-started]:not(#_h):not(#_u) #team-leiste:has(.tl-duo) .tl-herz{display:none}}
/* Quer-Modus (Claude 02.10.): Tester wollten quer spielen. Bei wenig Hoehe stehen Springen/Aktion
   links neben der rechten Knopfspalte statt darueber, der Stick rutscht nach unten, das Team nach oben. */
@media (orientation:landscape) and (max-height:500px){
body[data-started]:not(#_h):not(#_u) #walk-action{right:calc(var(--hud-rechts) + 62px)!important;bottom:calc(var(--hud-unten) + 4px)!important}
body[data-started]:not(#_h):not(#_u) #walk-jump{right:calc(var(--hud-rechts) + 80px)!important;bottom:calc(var(--hud-unten) + 106px)!important}
body[data-started]:not(#_h):not(#_u) #reit-knopf{right:calc(var(--hud-rechts) + 168px)!important;bottom:calc(var(--hud-unten) + 112px)!important}
body[data-started]:not(#_h):not(#_u) #walk-pose{right:calc(var(--hud-rechts) + 172px)!important;bottom:calc(var(--hud-unten) + 176px)!important}
body[data-started]:not(#_h):not(#_u) #walk-stick{bottom:calc(var(--hud-unten) + 8px)!important}
body[data-started]:not(#_h):not(#_u) #team-leiste,body[data-started]:not(#_h):not(#_u) #team-leiste:has(.tl-duo){top:calc(var(--hud-oben) + 104px)!important;flex-flow:row wrap!important;max-height:none;max-width:210px;gap:8px!important}
}
