*{box-sizing:border-box}
html,body{height:100%;overflow:hidden}
body{margin:0;min-height:100vh;display:flex;align-items:center;justify-content:center;background:#000;font-family:Arial,Helvetica,sans-serif;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
body{min-height:100dvh}
#game{position:relative;width:min(100vw,160vh);aspect-ratio:8/5;overflow:hidden;background:#000}
/* Handy/Tablet: dynamische Höhe (ohne Adressleiste), kein Scrollen/Zoomen beim Ziehen von Gegenständen */
@supports (height:100dvh){#game{width:min(100vw,160dvh)}}
#bg,#scene,#slots,#invGeist{touch-action:none}
#bg,#scene{position:absolute;inset:0;width:100%;height:100%;display:block}
.interactive{cursor:pointer}
.interactive:hover{filter:url(#outline)}
.interactive.painted:hover{filter:none}
.hit{fill:#000;fill-opacity:0;stroke:none}
html:not(.ink) .spr{image-rendering:pixelated;image-rendering:crisp-edges}
/* Klickflächen bleiben unsichtbar: Name am Mauszeiger reicht, die groben Umrisse sahen wild aus */
#petja{pointer-events:none} /* Petja fängt keine Klicks mehr ab – man klickt durch ihn hindurch auf Dinge hinter ihm */
#start button:disabled{opacity:.7;cursor:wait}




.blink{transform-box:fill-box;transform-origin:center;animation:blink 5s infinite}
@keyframes blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
.glare{animation:glare 7s infinite}
@keyframes glare{0%,70%,100%{opacity:0}74%,90%{opacity:1}}
.smoke{animation:smoke 3s ease-in-out infinite}
@keyframes smoke{0%,100%{opacity:.1;transform:translateY(0)}50%{opacity:.7;transform:translateY(-5px)}}


/* ===== Bedienoberfläche ===== */
:root{--wood1:#4a3420;--wood2:#2a1c10;--rim:#a07a48;--gold:#ffd25a;--ink:#f3e6c8;--muted:#b8a888}
#label{position:absolute;left:0;top:0;transform:translateX(-50%);white-space:nowrap;padding:3px 10px;border-radius:12px;background:rgba(20,14,8,.78);border:1px solid rgba(255,210,90,.35);
  font:bold clamp(12px,1.7vw,15px) Arial;color:#fff;pointer-events:none;opacity:0;transition:opacity .12s;z-index:30;text-shadow:1px 1px 0 #000}
#label.ex{color:var(--gold)}
.interactive.exit{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M3 10h12V4l10 10-10 10v-6H3z' fill='%23ffd25a' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 14 14,pointer}
#inv{position:absolute;right:8px;top:52px;display:flex;align-items:center;gap:6px;padding:4px 7px;border-radius:10px;background:rgba(20,14,8,.7);border:1px solid rgba(160,122,72,.6);color:#ddd;font-size:16px;z-index:12}
#slots{display:flex;gap:4px}#slots:empty::after{content:'leer';font:italic 12px Georgia;color:var(--muted)}
.slot{width:36px;height:36px;border-radius:7px;background:rgba(0,0,0,.45);border:1px solid #7a6040;display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer;transition:transform .1s,border-color .1s}
.slot:hover{transform:translateY(-2px);border-color:var(--gold)}
#box{position:absolute;left:12%;right:12%;top:8px;display:none;padding:8px 14px 10px;border-radius:10px;background:rgba(20,14,8,.85);border:2px solid rgba(160,122,72,.8);box-shadow:0 4px 0 rgba(0,0,0,.5);
  color:#fff;font-size:clamp(12px,1.8vw,16px);line-height:1.35;cursor:pointer}
#box.done::after{content:'▼';position:absolute;right:10px;bottom:4px;font-size:11px;color:var(--gold);animation:bob .8s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(3px)}}
#hud{position:absolute;right:8px;top:8px;display:flex;gap:4px;z-index:12}
#hud button span{display:none}
#game.busy #hud,#game.busy #inv{opacity:0;pointer-events:none}#hud,#inv{transition:opacity .2s}
#hud button{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:34px;padding:5px 5px 4px;border-radius:9px;cursor:pointer;
  background:rgba(20,14,8,.72);border:1px solid rgba(160,122,72,.6);color:var(--ink);font:bold 10px Arial;transition:transform .1s,background .1s}
#hud button i{font-style:normal;font-size:18px;line-height:1}#hud button:hover{transform:translateY(-2px);background:rgba(74,52,32,.92);border-color:var(--gold)}
#hud .badge{display:none;position:absolute;top:-4px;right:-3px;width:11px;height:11px;border-radius:50%;background:#ff5a3a;border:2px solid #1a1008}
#hud button.new .badge{display:block;animation:pop 1s ease-in-out infinite}@keyframes pop{50%{transform:scale(1.25)}}
#toasts{position:absolute;top:100px;right:10px;display:flex;flex-direction:column;align-items:flex-end;gap:5px;z-index:35;pointer-events:none}
.toast{padding:6px 12px;border-radius:9px;background:rgba(20,14,8,.9);border:1px solid var(--rim);color:var(--ink);font:bold clamp(11px,1.5vw,14px) Arial;box-shadow:0 3px 0 rgba(0,0,0,.5);
  animation:tin .25s ease-out;transition:opacity .4s,transform .4s}.toast.out{opacity:0;transform:translateX(20px)}
.toast.item{border-color:#7ad06a}.toast.done{border-color:var(--gold);color:var(--gold)}.toast.new{border-color:#80b0ff}
@keyframes tin{from{opacity:0;transform:translateX(30px)}}
#spots{position:absolute;inset:0;z-index:28;pointer-events:none;background:rgba(0,0,0,.25)}
.spot{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center}
.spot i{width:16px;height:16px;border-radius:50%;background:rgba(255,255,255,.9);box-shadow:0 0 0 3px rgba(255,210,90,.6),0 0 14px 4px rgba(255,210,90,.7);animation:pop 1s ease-in-out infinite}
.spot.ex i{background:var(--gold)}.spot span{margin-top:3px;padding:1px 6px;border-radius:6px;background:rgba(0,0,0,.7);color:#fff;font:bold 11px Arial;white-space:nowrap}
#start{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#000;text-align:center;z-index:22}
#start h1{margin:0;font:900 clamp(48px,10vw,100px) "Arial Black",Impact,sans-serif;color:#ffd000;-webkit-text-stroke:2px #000;text-shadow:5px 5px 0 #c02000,7px 7px 0 #000}
#start h2{margin:6px 0 28px;font:bold clamp(14px,2.4vw,22px) Arial;color:#fff;text-shadow:2px 2px 0 #000}
#start button{font:bold 17px Arial;padding:10px 26px;border-radius:10px;color:#2a1a0a;background:linear-gradient(#e8dcc0,#c4b48e);border:2px solid #6a4a2a;box-shadow:0 4px 0 #3a2814;cursor:pointer;transition:transform .08s,filter .08s}
#start button:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}#start button:active{transform:translateY(3px);box-shadow:0 1px 0 #3a2814}
#start #bNew{background:linear-gradient(#ffe08a,#e0a83a);font-size:19px}
.room{display:none}
.room.on{display:inline}
#fade{position:absolute;inset:0;background:#000;opacity:1;pointer-events:none;transition:opacity .4s}
.ffly circle{animation:ff 3s ease-in-out infinite}
@keyframes ff{0%,100%{opacity:0;transform:translate(0,0)}50%{opacity:1;transform:translate(4px,-6px)}}
.nymg{transition:opacity .7s}

.sway{animation:sway 3s ease-in-out infinite;transform-origin:430px 0}@keyframes sway{50%{transform:rotate(1.4deg)}}

#box{z-index:25}#fade{z-index:20}

.wheel{animation:spin 14s linear infinite;transform-origin:430px 300px}@keyframes spin{to{transform:rotate(360deg)}}.flow{stroke-dasharray:6 5;animation:flow .5s linear infinite}@keyframes flow{to{stroke-dashoffset:-11}}

/* ===== Menüs ===== */
.ovl{position:absolute;inset:0;z-index:40;background:rgba(8,6,4,.78);backdrop-filter:blur(2px);display:flex;gap:2%;align-items:center;justify-content:center;padding:3%;box-sizing:border-box;color:var(--ink);font:clamp(11px,1.6vw,14px) Georgia,serif;animation:fin .15s ease-out}
@keyframes fin{from{opacity:0}}
.pan{position:relative;background:linear-gradient(var(--wood1),var(--wood2));border:3px solid var(--rim);border-radius:12px;box-shadow:0 0 0 2px #1a1008,0 8px 0 rgba(0,0,0,.6);padding:14px 18px;max-height:92%;overflow:auto;box-sizing:border-box;animation:pin .18s ease-out}
@keyframes pin{from{transform:scale(.96);opacity:0}}
.pan h3{margin:0 0 10px;color:var(--gold);font:bold clamp(15px,2.3vw,21px) Arial;text-shadow:2px 2px 0 #000;border-bottom:1px solid rgba(160,122,72,.6);padding-bottom:6px}
.pan .x{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;border:2px solid var(--rim);background:#2a1c10;color:var(--ink);font:bold 14px Arial;cursor:pointer;padding:0}
.pan .x:hover{background:#6a2a1a;border-color:var(--gold)}
.menu{width:min(440px,70%);display:flex;flex-direction:column;gap:6px}
.menu button,.mb{font:bold 14px Arial;padding:8px 12px;border-radius:8px;background:linear-gradient(#e8dcc0,#c4b48e);color:#2a1a0a;border:2px solid #6a4a2a;box-shadow:0 3px 0 #3a2814;cursor:pointer;text-align:left;transition:transform .08s,filter .08s}
.menu button:hover:not(:disabled),.mb:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}.menu button:active:not(:disabled),.mb:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #3a2814}
.menu button:disabled,.mb:disabled{opacity:.45;cursor:default}
.menu .x{align-self:auto;box-shadow:none;background:#2a1c10;color:var(--ink);text-align:center}
.mb.big{font-size:16px;padding:11px 14px;background:linear-gradient(#ffe08a,#e0a83a)}.mb.back{align-self:flex-start;margin-top:6px}.mb.quit{margin-top:6px;background:linear-gradient(#e8c8b8,#c09080)}
.opts .mb{display:flex;justify-content:space-between;width:100%}.opts{display:flex;flex-direction:column;gap:6px}.opts b{color:#7a2a10}
.slots3{display:flex;flex-direction:column;gap:6px}.slotc{display:flex !important;gap:12px;align-items:center}.slotc b{min-width:58px}.slotc span{font-weight:normal;line-height:1.25}.slotc small{color:#6a5a40}.slotc.warn{background:linear-gradient(#ffd0a0,#e09060) !important}
.msg{margin:4px 0 0}.msg.ok{color:#9ae08a;font-style:normal;font-weight:bold}
.menu table{border-collapse:collapse}.menu td{padding:4px 8px;border-bottom:1px solid rgba(160,122,72,.35)}.menu td:first-child{color:var(--gold);font-weight:bold;white-space:nowrap}
.em{color:var(--muted);font-style:italic}kbd{font:bold 9px Arial;padding:1px 4px;border-radius:3px;background:rgba(0,0,0,.35);color:var(--muted);margin-left:3px}
/* Tagebuch */
.book{width:min(760px,94%);height:88%;display:flex;flex-direction:column;padding:0;overflow:hidden}
.tabs{display:flex;gap:4px;padding:10px 50px 0 12px;border-bottom:2px solid var(--rim);background:rgba(0,0,0,.2)}
.tab{font:bold 14px Arial;padding:8px 14px;border:2px solid transparent;border-bottom:none;border-radius:9px 9px 0 0;background:transparent;color:var(--muted);cursor:pointer}
.tab:hover{color:var(--ink)}.tab.on{background:var(--wood1);color:var(--gold);border-color:var(--rim);margin-bottom:-2px}
.book .x{top:9px}.bbody{flex:1;overflow:auto;padding:14px 18px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
.card{background:#1e140c;border:2px solid #6a4a2a;border-radius:9px;padding:8px 4px;text-align:center;cursor:pointer;color:var(--ink);font:12px Georgia;transition:transform .1s}
.card:hover{border-color:var(--gold);transform:translateY(-2px)}.card.sel{border-color:var(--gold);background:#3a2814}.card b{display:block;font-size:30px;margin-bottom:3px}
.detail{display:flex;gap:14px;align-items:center;margin-top:14px;padding:12px;border-radius:9px;background:rgba(0,0,0,.25);min-height:70px}
.detail .big{font-size:46px}.detail h4{margin:0 0 4px;color:var(--gold);font:bold 16px Arial}.detail p{margin:0;font-style:italic}
.empty{text-align:center;font-size:30px;margin-top:40px;line-height:1.6}.empty .em{font-size:13px}
.nextbox{padding:10px 14px;margin-bottom:10px;border-radius:9px;background:rgba(255,210,90,.12);border:1px solid var(--gold);color:var(--gold);font:bold 15px Arial}
.nextbox small{display:block;font:11px Arial;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:2px}
.q{margin:3px 0}.q span{display:block}.q i{display:block;font-size:.85em;color:var(--muted);margin:1px 0 3px 20px}
.q.l0{margin-top:10px}.q.l0>span{font:bold 15px Arial;color:#ffd890}.q.l1,.q.l2,.q.l3{margin-left:18px}.q.l2,.q.l3{font-size:.93em}
.q.done>span{color:#7a9a6a}.q.next>span{color:var(--gold);font-weight:bold}
.fin{margin-top:14px;color:var(--muted)}.fin summary{cursor:pointer;font:bold 13px Arial}
.map{width:100%;height:calc(100% - 30px);background:radial-gradient(#2a2016,#140e08);border:1px solid #6a4a2a;border-radius:9px}
.map .pulse{animation:mp 1.4s ease-out infinite;transform-box:fill-box;transform-origin:center}@keyframes mp{from{transform:scale(.6);opacity:1}to{transform:scale(1.8);opacity:0}}
.legend{margin:6px 0 0;font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:center}.lg{display:inline-block;width:10px;height:10px;border-radius:50%;background:#d8b070;margin-left:8px;font:bold 8px Arial;text-align:center;line-height:10px}.lg.here{background:#e04020}.lg.unk{background:#2a2016;border:1px solid #6a5a40;color:#8a7a5a}
/* Anleitung */
.tut{width:min(560px,90%)}.tips{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}.tips div{display:flex;gap:12px;align-items:flex-start}
.tips b{flex:none;width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.3);border:1px solid var(--rim);display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--gold)}
.tips p{margin:0;line-height:1.4}.tips strong{color:var(--gold)}.tut .go{text-align:center;width:100%}
.hint{position:absolute;bottom:6px;right:10px;font:12px Arial;color:#998}
/* Komfort: Regler, Gesprächsverlauf, Weiterspielen */
.sl{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 12px;border-radius:8px;background:rgba(0,0,0,.25);font:bold 13px Arial}
.sl input{width:45%;accent-color:#e0a83a;cursor:pointer}
.log p{margin:0 0 6px;line-height:1.4}.log b{font-family:Arial}.log i{color:var(--muted)}
#start #bCont{background:linear-gradient(#ffe08a,#e0a83a);font-size:19px}#start.hascont #bNew{background:linear-gradient(#e8dcc0,#c4b48e);font-size:17px}
/* Patch Notes */
.newtag{font:bold 10px Arial;font-style:normal;padding:2px 5px;margin-left:6px;border-radius:5px;background:#e0402a;color:#fff;vertical-align:middle;animation:pop 1.2s ease-in-out infinite;display:inline-block}
#newsCard{position:absolute;right:14px;bottom:14px;width:min(250px,34%);padding:10px 12px;border-radius:10px;background:rgba(20,14,8,.82);border:1px solid var(--rim);color:var(--ink);font:12px Georgia;text-align:left;cursor:pointer;transition:transform .1s,border-color .1s}
#newsCard:hover{transform:translateY(-2px);border-color:var(--gold)}#newsCard small{display:block;font:bold 10px Arial;letter-spacing:.06em;color:var(--muted)}
#newsCard b{display:block;margin:2px 0 4px;color:var(--gold);font:bold 14px Arial}#newsCard ul{margin:0;padding-left:16px;line-height:1.35}#newsCard span{display:block;margin-top:6px;font:bold 11px Arial;color:var(--gold)}
.news{width:min(560px,90%)}.pn{margin-bottom:12px;padding:10px 12px;border-radius:9px;background:rgba(0,0,0,.22)}.pn.latest{border:1px solid var(--gold);background:rgba(255,210,90,.08)}
.pnh{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.pnh b{color:var(--gold);font:bold 15px Arial}.pnh span{font:11px Arial;color:var(--muted);white-space:nowrap}
.pn ul{margin:6px 0 0;padding-left:18px;line-height:1.45}
@media (max-width:640px){#newsCard{display:none}}

.iv{width:34%;text-align:center}.por{width:100%;image-rendering:pixelated;background:#1a2a24;border:2px solid #6a4a2a}.ivq{width:52%}.ivq label{display:block;margin:3px 0;cursor:pointer}.qb,.ivq .row button{display:block;width:100%;margin:3px 0;font:bold 13px Arial;padding:5px 8px;background:#c8c4b8;border:3px outset #eee;cursor:pointer;text-align:left}.ivq .row{display:flex;gap:6px}.ans{min-height:2.6em}.res{color:#ffb070;font-weight:bold}

.dance{animation:dance 1.1s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 100%}@keyframes dance{0%,100%{transform:rotate(-4deg) translateY(0)}25%{transform:rotate(0) translateY(-4px)}50%{transform:rotate(4deg) translateY(0)}75%{transform:rotate(0) translateY(-4px)}}

.pole{animation:pole 9s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 100%}
@keyframes pole{0%{transform:translate(-26px,0px) scaleX(1) rotate(0deg)}8%{transform:translate(-26px,0px) scaleX(1) rotate(-7deg)}16%{transform:translate(-6px,0px) scaleX(-1) rotate(5deg)}24%{transform:translate(22px,-6px) scaleX(-1) rotate(9deg)}32%{transform:translate(18px,-46px) scaleX(-1) rotate(12deg)}40%{transform:translate(6px,-58px) scaleX(1) rotate(-14deg)}48%{transform:translate(-8px,-58px) scaleX(1) rotate(-26deg)}56%{transform:translate(-14px,-30px) scaleX(1) rotate(-8deg)}64%{transform:translate(-22px,0px) scaleX(1) rotate(4deg)}72%{transform:translate(-30px,-6px) scaleX(1) rotate(-5deg)}80%{transform:translate(-14px,0px) scaleX(-1) rotate(3deg)}88%{transform:translate(-24px,-4px) scaleX(-1) rotate(-3deg)}100%{transform:translate(-26px,0px) scaleX(1) rotate(0deg)}}

#tcv{position:absolute;inset:0;width:100%;height:100%}.tbox{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px}#start .tbox button{min-width:220px}.tsub{margin:14px 0 0;font:italic 13px Georgia;color:#a8b0a0;text-shadow:1px 1px 0 #000}

/* ===================== UI-Stil: geschnitztes Holz & Messing =====================
   Fenster: dunkles Lackfach in Goldrahmen mit geschnitztem Holzring und Ornamentband; Knöpfe: gewölbte Messingplatten,
   Hauptknöpfe roter Lack mit Goldrand; Gegenstände als gemalte Bilder auf schwarzem Samt. Überschreibt die Regeln oben. */
:root{--orn:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2218%22%20viewBox%3D%220%200%2064%2018%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22gd%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f6d88a%22%2F%3E%3Cstop%20offset%3D%22.5%22%20stop-color%3D%22%23c08a36%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e6bc62%22%2F%3E%3C%2FlinearGradient%3E%3Cfilter%20id%3D%22bv%22%20x%3D%22-5%25%22%20y%3D%22-5%25%22%20width%3D%22110%25%22%20height%3D%22110%25%22%20color-interpolation-filters%3D%22sRGB%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.9%20.02%22%20numOctaves%3D%222%22%20seed%3D%225%22%20result%3D%22n%22%2F%3E%3CfeColorMatrix%20in%3D%22n%22%20type%3D%22matrix%22%20values%3D%221%200%200%200%200%201%200%200%200%200%201%200%200%200%200%200%200%200%200%201%22%20result%3D%22g%22%2F%3E%3CfeComposite%20in%3D%22SourceGraphic%22%20in2%3D%22g%22%20operator%3D%22arithmetic%22%20k1%3D%22.3%22%20k2%3D%22.85%22%20result%3D%22t%22%2F%3E%3CfeGaussianBlur%20in%3D%22SourceAlpha%22%20stdDeviation%3D%220.6%22%20result%3D%22h%22%2F%3E%3CfeDiffuseLighting%20in%3D%22h%22%20surfaceScale%3D%222.2%22%20diffuseConstant%3D%221%22%20result%3D%22d%22%3E%3CfeDistantLight%20azimuth%3D%22225%22%20elevation%3D%2240%22%2F%3E%3C%2FfeDiffuseLighting%3E%3CfeSpecularLighting%20in%3D%22h%22%20surfaceScale%3D%222.2%22%20specularConstant%3D%221.1%22%20specularExponent%3D%2222%22%20result%3D%22s%22%3E%3CfeDistantLight%20azimuth%3D%22225%22%20elevation%3D%2252%22%2F%3E%3C%2FfeSpecularLighting%3E%3CfeComposite%20in%3D%22t%22%20in2%3D%22d%22%20operator%3D%22arithmetic%22%20k1%3D%221.35%22%20result%3D%22l%22%2F%3E%3CfeComposite%20in%3D%22s%22%20in2%3D%22SourceAlpha%22%20operator%3D%22in%22%20result%3D%22s2%22%2F%3E%3CfeComposite%20in%3D%22l%22%20in2%3D%22s2%22%20operator%3D%22arithmetic%22%20k2%3D%221%22%20k3%3D%22.8%22%20result%3D%22o%22%2F%3E%3CfeComposite%20in%3D%22o%22%20in2%3D%22SourceAlpha%22%20operator%3D%22in%22%2F%3E%3C%2Ffilter%3E%3Cfilter%20id%3D%22w%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.02%20.4%22%20numOctaves%3D%223%22%20seed%3D%229%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%22.3%200%200%200%20.05%20%20.17%200%200%200%20.02%20%20.08%200%200%200%20.005%20%200%200%200%200%201%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Crect%20width%3D%2264%22%20height%3D%2218%22%20filter%3D%22url%28%23w%29%22%2F%3E%3Cg%20filter%3D%22url%28%23bv%29%22%3E%3Cpath%20d%3D%22M0%2C0.4H64V2.2H0ZM0%2C15.8H64V17.6H0Z%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3Cpath%20d%3D%22M0%2C9C6%2C9%208%2C4%2013%2C4C17%2C4%2018%2C8%2015%2C9C13%2C10%2011%2C8%2013%2C7M32%2C9C26%2C9%2024%2C4%2019%2C4C15%2C4%2014%2C8%2017%2C9C19%2C10%2021%2C8%2019%2C7M32%2C9C38%2C9%2040%2C14%2045%2C14C49%2C14%2050%2C10%2047%2C9C45%2C8%2043%2C10%2045%2C11M64%2C9C58%2C9%2056%2C14%2051%2C14C47%2C14%2046%2C10%2049%2C9C51%2C8%2053%2C10%2051%2C11%22%20fill%3D%22none%22%20stroke%3D%22url%28%23gd%29%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M32%2C3.6L35.4%2C9L32%2C14.4L28.6%2C9Z%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%229%22%20r%3D%222.2%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3Ccircle%20cx%3D%2264%22%20cy%3D%229%22%20r%3D%222.2%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2214%22%20r%3D%221.3%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%224%22%20r%3D%221.3%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");--woodtex:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22320%22%20height%3D%22160%22%3E%3Cfilter%20id%3D%22w%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.0045%20.085%22%20numOctaves%3D%224%22%20seed%3D%224%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%22.55%200%200%200%20.06%20%20.3%200%200%200%20.025%20%20.14%200%200%200%20.008%20%200%200%200%200%201%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22320%22%20height%3D%22160%22%20filter%3D%22url%28%23w%29%22%2F%3E%3C%2Fsvg%3E");--brush:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22240%22%20height%3D%2260%22%3E%3Cfilter%20id%3D%22b%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.9%20.015%22%20numOctaves%3D%222%22%20seed%3D%222%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%20.5%20%200%200%200%200%20.5%20%200%200%200%200%20.5%20%201.6%200%200%200%20-.55%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22240%22%20height%3D%2260%22%20filter%3D%22url%28%23b%29%22%2F%3E%3C%2Fsvg%3E");--frameimg:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2296%22%20height%3D%2296%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22gd%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f6d88a%22%2F%3E%3Cstop%20offset%3D%22.5%22%20stop-color%3D%22%23c08a36%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e6bc62%22%2F%3E%3C%2FlinearGradient%3E%3Cfilter%20id%3D%22bv%22%20x%3D%22-5%25%22%20y%3D%22-5%25%22%20width%3D%22110%25%22%20height%3D%22110%25%22%20color-interpolation-filters%3D%22sRGB%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.9%20.02%22%20numOctaves%3D%222%22%20seed%3D%225%22%20result%3D%22n%22%2F%3E%3CfeColorMatrix%20in%3D%22n%22%20type%3D%22matrix%22%20values%3D%221%200%200%200%200%201%200%200%200%200%201%200%200%200%200%200%200%200%200%201%22%20result%3D%22g%22%2F%3E%3CfeComposite%20in%3D%22SourceGraphic%22%20in2%3D%22g%22%20operator%3D%22arithmetic%22%20k1%3D%22.3%22%20k2%3D%22.85%22%20result%3D%22t%22%2F%3E%3CfeGaussianBlur%20in%3D%22SourceAlpha%22%20stdDeviation%3D%222.2%22%20result%3D%22h%22%2F%3E%3CfeDiffuseLighting%20in%3D%22h%22%20surfaceScale%3D%225%22%20diffuseConstant%3D%221%22%20result%3D%22d%22%3E%3CfeDistantLight%20azimuth%3D%22225%22%20elevation%3D%2240%22%2F%3E%3C%2FfeDiffuseLighting%3E%3CfeSpecularLighting%20in%3D%22h%22%20surfaceScale%3D%225%22%20specularConstant%3D%221.1%22%20specularExponent%3D%2222%22%20result%3D%22s%22%3E%3CfeDistantLight%20azimuth%3D%22225%22%20elevation%3D%2252%22%2F%3E%3C%2FfeSpecularLighting%3E%3CfeComposite%20in%3D%22t%22%20in2%3D%22d%22%20operator%3D%22arithmetic%22%20k1%3D%221.35%22%20result%3D%22l%22%2F%3E%3CfeComposite%20in%3D%22s%22%20in2%3D%22SourceAlpha%22%20operator%3D%22in%22%20result%3D%22s2%22%2F%3E%3CfeComposite%20in%3D%22l%22%20in2%3D%22s2%22%20operator%3D%22arithmetic%22%20k2%3D%221%22%20k3%3D%22.8%22%20result%3D%22o%22%2F%3E%3CfeComposite%20in%3D%22o%22%20in2%3D%22SourceAlpha%22%20operator%3D%22in%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg%20filter%3D%22url%28%23bv%29%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M2%2C2H94V94H2ZM21%2C21V75H75V21Z%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%229%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%223.2%22%20fill%3D%22%238a5a1a%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%221.6%22%20fill%3D%22%23f8e4a0%22%2F%3E%3Ccircle%20cx%3D%2285%22%20cy%3D%2211%22%20r%3D%229%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3Ccircle%20cx%3D%2285%22%20cy%3D%2211%22%20r%3D%223.2%22%20fill%3D%22%238a5a1a%22%2F%3E%3Ccircle%20cx%3D%2285%22%20cy%3D%2211%22%20r%3D%221.6%22%20fill%3D%22%23f8e4a0%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2285%22%20r%3D%229%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2285%22%20r%3D%223.2%22%20fill%3D%22%238a5a1a%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2285%22%20r%3D%221.6%22%20fill%3D%22%23f8e4a0%22%2F%3E%3Ccircle%20cx%3D%2285%22%20cy%3D%2285%22%20r%3D%229%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3Ccircle%20cx%3D%2285%22%20cy%3D%2285%22%20r%3D%223.2%22%20fill%3D%22%238a5a1a%22%2F%3E%3Ccircle%20cx%3D%2285%22%20cy%3D%2285%22%20r%3D%221.6%22%20fill%3D%22%23f8e4a0%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M13%2C13H83V83H13Z%22%20fill%3D%22none%22%20stroke%3D%22%234a2a08%22%20stroke-opacity%3D%22.7%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22M21%2C21H75V75H21Z%22%20fill%3D%22none%22%20stroke%3D%22%231a0e04%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M2%2C2H94V94H2Z%22%20fill%3D%22none%22%20stroke%3D%22%231a0e04%22%20stroke-width%3D%221.4%22%2F%3E%3C%2Fsvg%3E");--frameS:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2264%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22gd%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f6d88a%22%2F%3E%3Cstop%20offset%3D%22.5%22%20stop-color%3D%22%23c08a36%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e6bc62%22%2F%3E%3C%2FlinearGradient%3E%3Cfilter%20id%3D%22bv%22%20x%3D%22-5%25%22%20y%3D%22-5%25%22%20width%3D%22110%25%22%20height%3D%22110%25%22%20color-interpolation-filters%3D%22sRGB%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.9%20.02%22%20numOctaves%3D%222%22%20seed%3D%225%22%20result%3D%22n%22%2F%3E%3CfeColorMatrix%20in%3D%22n%22%20type%3D%22matrix%22%20values%3D%221%200%200%200%200%201%200%200%200%200%201%200%200%200%200%200%200%200%200%201%22%20result%3D%22g%22%2F%3E%3CfeComposite%20in%3D%22SourceGraphic%22%20in2%3D%22g%22%20operator%3D%22arithmetic%22%20k1%3D%22.3%22%20k2%3D%22.85%22%20result%3D%22t%22%2F%3E%3CfeGaussianBlur%20in%3D%22SourceAlpha%22%20stdDeviation%3D%221.4%22%20result%3D%22h%22%2F%3E%3CfeDiffuseLighting%20in%3D%22h%22%20surfaceScale%3D%224%22%20diffuseConstant%3D%221%22%20result%3D%22d%22%3E%3CfeDistantLight%20azimuth%3D%22225%22%20elevation%3D%2240%22%2F%3E%3C%2FfeDiffuseLighting%3E%3CfeSpecularLighting%20in%3D%22h%22%20surfaceScale%3D%224%22%20specularConstant%3D%221.1%22%20specularExponent%3D%2222%22%20result%3D%22s%22%3E%3CfeDistantLight%20azimuth%3D%22225%22%20elevation%3D%2252%22%2F%3E%3C%2FfeSpecularLighting%3E%3CfeComposite%20in%3D%22t%22%20in2%3D%22d%22%20operator%3D%22arithmetic%22%20k1%3D%221.35%22%20result%3D%22l%22%2F%3E%3CfeComposite%20in%3D%22s%22%20in2%3D%22SourceAlpha%22%20operator%3D%22in%22%20result%3D%22s2%22%2F%3E%3CfeComposite%20in%3D%22l%22%20in2%3D%22s2%22%20operator%3D%22arithmetic%22%20k2%3D%221%22%20k3%3D%22.8%22%20result%3D%22o%22%2F%3E%3CfeComposite%20in%3D%22o%22%20in2%3D%22SourceAlpha%22%20operator%3D%22in%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cg%20filter%3D%22url%28%23bv%29%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M1%2C1H63V63H1ZM8%2C8V56H56V8Z%22%20fill%3D%22url%28%23gd%29%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M8%2C8H56V56H8Z%22%20fill%3D%22none%22%20stroke%3D%22%231a0e04%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22M1%2C1H63V63H1Z%22%20fill%3D%22none%22%20stroke%3D%22%231a0e04%22%20stroke-width%3D%221.2%22%2F%3E%3C%2Fsvg%3E");
  --brass:linear-gradient(#fff3b8 0%,#ecc46a 22%,#c08a32 50%,#93601c 53%,#c9963e 80%,#f4d88a 100%);
  --brassH:linear-gradient(#fffad0 0%,#f6d27a 22%,#d29a3a 50%,#a46c22 53%,#dba84a 80%,#fbe49a 100%);
  --lacq:linear-gradient(#e0563a 0%,#b52c18 48%,#8a1a0c 52%,#b8321c 100%);
  --wood:var(--woodtex) 0 0/320px 160px,linear-gradient(#6a3e1c,#3c220e);
  --velvet:radial-gradient(ellipse at 50% 30%,#1c1410,#050302 75%);
  --frame:0 0 0 2px #1a0e04,0 0 0 3px #f2d488,0 0 0 8px #6a3e1c,0 0 0 10px #1a0e04,0 10px 22px 10px rgba(0,0,0,.55);
  --ink:#f6e8c4;--gold:#f4cc62;--muted:#b8a27a;--rim:#c8943a}
/* --- Messingknopf (alle Knöpfe) --- */
.menu button,.mb,#start button,.slotc,.qb,.ivq .row button{font:bold 14px Georgia,serif;color:#2a1606;text-shadow:0 1px 0 rgba(255,244,200,.75);background:var(--brass);
  border:2px solid #4a2a0a;border-radius:5px;box-shadow:inset 0 1px 0 rgba(255,255,255,.75),inset 0 -2px 0 rgba(90,50,10,.55),0 3px 0 #2a1606,0 5px 7px rgba(0,0,0,.55)}
.menu button:hover:not(:disabled),.mb:hover:not(:disabled),#start button:hover:not(:disabled),.slotc:hover:not(:disabled),.qb:hover{background:var(--brassH);filter:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -2px 0 rgba(90,50,10,.55),0 3px 0 #2a1606,0 0 10px 2px rgba(255,210,90,.55)}
.menu button:active:not(:disabled),.mb:active:not(:disabled),#start button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 3px rgba(60,30,0,.6),0 1px 0 #2a1606}
.menu button:disabled,.mb:disabled,#start button:disabled,.slotc:disabled{filter:grayscale(.7) brightness(.75);opacity:.7}
/* Hauptknöpfe: roter Lack mit Goldrand */
.mb.big,#start #bNew,#start #bCont{background:var(--lacq);color:#ffeab0;text-shadow:0 1px 0 #4a0a00,0 0 6px rgba(255,200,90,.35);border:2px solid #f2c862;
  box-shadow:0 0 0 2px #3a0a02,inset 0 1px 0 rgba(255,200,170,.6),0 3px 0 #2a0602,0 5px 8px rgba(0,0,0,.6)}
.mb.big:hover:not(:disabled),#start #bNew:hover:not(:disabled),#start #bCont:hover:not(:disabled){background:linear-gradient(#f06a48,#c83820 48%,#9a2410 52%,#cc4024);box-shadow:0 0 0 2px #3a0a02,0 0 12px 3px rgba(255,190,80,.6)}
#start.hascont #bNew{background:var(--brass);color:#2a1606;text-shadow:0 1px 0 rgba(255,244,200,.75);border-color:#4a2a0a}
.mb.quit{background:linear-gradient(#5a3a28,#3a2214);color:var(--ink);text-shadow:0 1px 0 #000;border-color:#c8943a}
.slotc.warn{background:var(--lacq) !important;color:#ffeab0;text-shadow:0 1px 0 #4a0a00}.slotc small{color:#5a3a14}.slotc.warn small{color:#ffd8a0}
.opts b{color:#7a1a08}
/* --- Fenster --- */
.ovl{background:rgba(6,4,2,.72)}
.pan{background:var(--velvet);border:none;border-radius:3px;box-shadow:var(--frame);padding:30px 22px 18px}
.pan::before{content:'';position:absolute;left:0;right:0;top:0;height:18px;background:var(--orn) repeat-x center/auto 18px;border-bottom:1px solid #1a0e04}
.pan h3{margin:4px 0 12px;font:bold clamp(16px,2.4vw,22px) Georgia,serif;font-variant:small-caps;letter-spacing:.04em;color:var(--gold);text-shadow:0 2px 0 #000,0 0 10px rgba(255,190,80,.25);
  border-bottom:none;padding-bottom:8px;background:linear-gradient(90deg,transparent,#c8943a 20%,#f4d88a 50%,#c8943a 80%,transparent) bottom/100% 2px no-repeat}
.pan .x{top:24px;right:10px;width:30px;height:30px;border-radius:50%;background:var(--lacq);border:2px solid #f2c862;color:#ffeab0;box-shadow:0 0 0 2px #3a0a02,0 3px 5px rgba(0,0,0,.6);font:bold 14px Georgia}
.pan .x:hover{background:linear-gradient(#f06a48,#9a2410);box-shadow:0 0 0 2px #3a0a02,0 0 10px 2px rgba(255,190,80,.6)}
.book{padding:18px 0 0}.book .x{top:26px}
.tabs{padding:10px 52px 0 14px;border-bottom:3px solid #c8943a;background:var(--wood)}
.tab{font:bold 14px Georgia,serif;color:#2a1606;text-shadow:0 1px 0 rgba(255,244,200,.6);background:linear-gradient(#c8a060,#8a6430);border:2px solid #4a2a0a;border-bottom:none;border-radius:6px 6px 0 0;opacity:.85}
.tab:hover{opacity:1;color:#2a1606}.tab.on{background:var(--brassH);color:#2a1606;border-color:#4a2a0a;opacity:1;margin-bottom:-3px;padding-bottom:11px}
.grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px}
.card{background:var(--velvet);border:2px solid #6a4418;border-radius:4px;box-shadow:inset 0 0 0 1px #f2d48855,0 3px 6px rgba(0,0,0,.6);color:var(--ink);font:12px Georgia;padding:8px 4px 6px}
.card:hover{border-color:var(--gold);box-shadow:inset 0 0 0 1px #f2d488,0 0 10px rgba(255,200,90,.45)}.card.sel{border-color:var(--gold);background:radial-gradient(ellipse at 50% 30%,#3a2814,#0c0806 75%)}
.card b{font-size:0;margin-bottom:4px;display:flex;justify-content:center}.card b img{width:52px;height:52px}
.detail{background:var(--velvet);border:1px solid #6a4418;border-radius:4px;box-shadow:inset 0 0 0 1px #f2d48840}.detail .big{font-size:0}.detail .big img{width:72px;height:72px}
.detail h4{font:bold 17px Georgia,serif;color:var(--gold)}
.nextbox{background:linear-gradient(rgba(255,210,90,.14),rgba(255,210,90,.05));border:1px solid var(--gold);border-radius:4px;font:bold 15px Georgia,serif}
.map{border:2px solid #6a4418;border-radius:3px}
.sl{background:rgba(0,0,0,.35);border:1px solid #6a441880;border-radius:4px;font:bold 13px Georgia,serif}.sl input{accent-color:#d8a440}
.tips b{background:var(--brass);border:2px solid #4a2a0a;color:#2a1606}
.menu td{border-bottom-color:#6a441866}
#newsCard,.toast{background:var(--velvet);border:2px solid #c8943a;border-radius:4px;box-shadow:0 0 0 2px #1a0e04,0 4px 8px rgba(0,0,0,.6)}
#newsCard b{font:bold 14px Georgia,serif}.pn{background:rgba(255,220,140,.05);border:1px solid #6a441880;border-radius:4px}.pn.latest{border-color:var(--gold)}
.pnh b{font:bold 15px Georgia,serif}
/* --- Startbildschirm --- */
#start h1{font:900 clamp(52px,11vw,110px) Georgia,serif;letter-spacing:.06em;-webkit-text-stroke:0;text-shadow:none;
  background:linear-gradient(#fff3b8,#ecc46a 40%,#a46c22 60%,#f4d88a);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(3px 4px 0 #6a1a08) drop-shadow(0 0 1px #000)}
#start h2{font:italic bold clamp(14px,2.4vw,22px) Georgia,serif;color:#f6e8c4}
#start button{font:bold 17px Georgia,serif;padding:10px 26px}
/* --- Dialogbox: Lackfach im Goldrahmen mit Ornamentband --- */
#box{left:12%;right:12%;top:12px;padding:24px 18px 12px;border:none;border-radius:3px;background:var(--velvet);box-shadow:var(--frame);font-family:Georgia,serif;color:#f6ead0}
#box::before{content:'';position:absolute;left:0;right:0;top:0;height:14px;background:var(--orn) repeat-x center/auto 14px}
#box #who{color:var(--gold);font-variant:small-caps;letter-spacing:.03em}
#box.done::after{content:'';right:12px;bottom:6px;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-top:9px solid var(--gold);filter:drop-shadow(0 1px 0 #000)}
/* --- Maus-Label --- */
#label{border-radius:3px;background:linear-gradient(#2a1a0c,#120a04);border:1px solid #c8943a;box-shadow:0 0 0 1px #1a0e04,0 2px 4px rgba(0,0,0,.6);font:bold clamp(12px,1.7vw,15px) Georgia,serif;color:#f6e8c4}
/* --- Leiste: Messingplaketten mit gravierten Symbolen --- */
#hud{gap:5px;padding:5px;background:var(--wood);border-radius:3px;box-shadow:0 0 0 2px #1a0e04,0 0 0 3px #c8943a,0 0 0 4px #1a0e04,0 4px 8px rgba(0,0,0,.6)}
#hud button{min-width:0;width:38px;height:38px;padding:0;justify-content:center;border-radius:4px;background:var(--brass);border:2px solid #4a2a0a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),inset 0 -2px 0 rgba(90,50,10,.55),0 2px 0 #1a0e04}
#hud button:hover{transform:translateY(-1px);background:var(--brassH);border-color:#4a2a0a;box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 2px 0 #1a0e04,0 0 10px 2px rgba(255,210,90,.6)}
#hud button:active{transform:translateY(1px)}
#hud button i{display:flex}#hud button i img{width:26px;height:26px}
#hud .badge{background:radial-gradient(circle at 35% 35%,#ff8a6a,#c81a08);border:2px solid #f2c862;top:-5px;right:-5px}
/* --- Taschen: geschnitzte Leiste, Fächer aus schwarzem Samt --- */
#inv{top:62px;gap:7px;padding:5px 8px 5px 6px;border:none;border-radius:3px;background:var(--wood);box-shadow:0 0 0 2px #1a0e04,0 0 0 3px #c8943a,0 0 0 4px #1a0e04,0 4px 8px rgba(0,0,0,.6)}
#inv>span{display:flex;width:30px;height:30px;padding:2px;border-radius:4px;background:var(--brass);border:1px solid #4a2a0a}#inv>span img{width:100%;height:100%}
#slots{gap:5px}#slots:empty::after{font:italic 12px Georgia;color:#e8d4a8}
.slot{width:42px;height:42px;border-radius:3px;background:var(--velvet);border:1px solid #1a0e04;box-shadow:inset 0 0 0 1px #c8943a,inset 0 2px 6px rgba(0,0,0,.9);font-size:0}
.slot img{width:36px;height:36px}.slot:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px #f4d88a,0 0 8px 2px rgba(255,210,90,.5)}
.ico{display:block;pointer-events:none}.ico.sm{display:inline-block;width:20px;height:20px;vertical-align:middle;margin-right:5px}
.toast{display:flex;align-items:center;font:bold clamp(11px,1.5vw,14px) Georgia,serif}.toast.item{border-color:#8ad06a}.toast.done{border-color:var(--gold)}.toast.new{border-color:#80b0ff}
.spot span{background:linear-gradient(#2a1a0c,#120a04);border:1px solid #c8943a;border-radius:3px;font:bold 11px Georgia,serif}
/* --- Materialien: gebürstetes Messing, gewölbte Messingrahmen (9-Slice), gemasertes Holz --- */
.menu button,.mb,#start button,.slotc,.qb,.ivq .row button,#hud button,.tab.on,.tips b,#inv>span{background:var(--brush) 0 0/240px 60px,var(--brass);background-blend-mode:overlay,normal}
.menu button:hover:not(:disabled),.mb:hover:not(:disabled),#start button:hover:not(:disabled),.slotc:hover:not(:disabled),#hud button:hover{background:var(--brush) 0 0/240px 60px,var(--brassH);background-blend-mode:overlay,normal}
.mb.big,#start #bNew,#start #bCont,.pan .x,.slotc.warn{background:linear-gradient(rgba(255,235,220,.42),rgba(255,255,255,.06) 46%,transparent 52%),var(--lacq) !important}
#start.hascont #bNew{background:var(--brush) 0 0/240px 60px,var(--brass) !important;background-blend-mode:overlay,normal}
.mb.quit{background:var(--wood)}
.tab{background:var(--brush) 0 0/240px 60px,linear-gradient(#c8a060,#8a6430);background-blend-mode:overlay,normal}
.pan,#box{border:14px solid transparent;border-image:var(--frameimg) 26 / 14px stretch;background:var(--velvet) padding-box;box-shadow:0 0 0 1px #1a0e04,0 14px 26px 6px rgba(0,0,0,.65)}
.pan{padding:24px 18px 14px}.pan .x{top:22px;right:8px}#box{padding:20px 16px 10px}.book{padding:18px 0 0}.book .x{top:24px}
#hud,#inv{border:7px solid transparent;border-image:var(--frameS) 9 / 7px stretch;background:var(--wood);background-origin:padding-box;background-clip:padding-box;box-shadow:0 5px 10px rgba(0,0,0,.65)}
#hud{padding:4px}#inv{padding:4px 6px 4px 4px;top:66px}
.tabs{background:var(--wood)}
#label,.spot span{border:none;border-image:var(--frameS) 9 / 4px stretch;border-style:solid;border-width:4px;background:var(--velvet) padding-box}
.pan,#box{border-width:18px;border-image:var(--frameimg) 22 / 18px stretch}
.pan::before{height:22px;background-size:auto 22px}#box::before{height:18px;background-size:auto 18px}
.pan{padding:28px 18px 14px}.pan .x{top:28px}.book .x{top:30px}#box{padding:24px 16px 10px}
.grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}.card b img{width:66px;height:66px}.detail .big img{width:90px;height:90px}.slot{width:46px;height:46px}.slot img{width:40px;height:40px}
.arr{display:inline-block;width:1.35em;height:1.35em;vertical-align:-.32em;margin-right:5px;pointer-events:none}.tips b .arr{width:26px;height:26px;margin:0}.tips b:has(.arr){background:var(--velvet)}
.arr{width:1.75em;height:1.75em;vertical-align:-.5em;margin:-.2em 4px -.2em -2px}
/* Auftrags-Notizen: was genau zu tun ist und wo */
.q em.qh{display:block;font-style:normal;font-size:.92em;line-height:1.4;color:#e4d4b4;margin:2px 0 5px 20px;padding:4px 8px;border-left:2px solid rgba(255,210,90,.45);background:rgba(255,210,90,.06);border-radius:0 4px 4px 0}
.nextbox .nh{margin:5px 0 0;font:normal 13px/1.4 Georgia,serif;color:#f0e2c4}

/* ===================== Symbole (statt Emojis) – gravierte Linien, Farbe folgt der Schrift ===================== */
.ic{display:inline-block;width:1.15em;height:1.15em;vertical-align:-.24em;flex:none;overflow:visible}
.ic.sm{width:1em;height:1em;vertical-align:-.16em}.ic.big{width:46px;height:46px;opacity:.75}.ic.q{width:.95em;height:.95em;margin-right:2px}
.menu button .ic,.mb .ic,#start button .ic,.tab .ic,.slotc .ic,.tips b .ic{filter:drop-shadow(0 1px 0 rgba(255,244,200,.75))}
.mb.big .ic,#start #bNew .ic,#start #bCont .ic,.pan .x .ic{filter:drop-shadow(0 1px 0 #4a0a00)}
.pan h3 .ic,.toast .ic,.nextbox .ic,.q .ic,.empty .ic,#autoS .ic,.qh .ic{color:var(--gold);filter:drop-shadow(0 1px 0 #000)}
.q.done .ic{color:#9ad07a}.q.next>span .ic{color:#ffd25a}
.tips b .ic{width:22px;height:22px}.pan .x .ic{width:15px;height:15px;vertical-align:middle}
.opts .mb span{display:inline-flex;align-items:center;gap:6px}.sl .ic{margin-right:4px}
#bNews .ic{margin-right:4px}
/* ===================== Augenansicht: alles Klickbare leuchtet, Messing-Medaillons mit Symbol ===================== */
#spots{background:radial-gradient(ellipse at 50% 55%,rgba(10,6,2,.05) 30%,rgba(10,6,2,.55) 100%)}
#game.spotlit .room.on .interactive{filter:url(#outline)}
.spot i{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--brass);color:#2a1606;
  border:2px solid #4a2a0a;box-shadow:0 0 0 2px #f2d488aa,0 0 14px 5px rgba(255,200,90,.55),0 3px 5px rgba(0,0,0,.6);animation:spotpulse 1.4s ease-in-out infinite}
.spot i .ic{width:18px;height:18px;filter:drop-shadow(0 1px 0 rgba(255,244,200,.75))}
.spot.exit i{background:linear-gradient(rgba(255,235,220,.42),rgba(255,255,255,.06) 46%,transparent 52%),var(--lacq);color:#ffeab0;border-color:#f2c862}
.spot.exit i .ic{filter:drop-shadow(0 1px 0 #4a0a00)}
.spot.talk i{box-shadow:0 0 0 2px #f2d488aa,0 0 14px 5px rgba(140,200,255,.45),0 3px 5px rgba(0,0,0,.6)}
.spot span{margin-top:4px;padding:2px 8px;color:#f6e8c4;font:bold 12px Georgia,serif;text-shadow:0 1px 0 #000;white-space:nowrap}
.spot.exit span{color:#ffd25a}
@keyframes spotpulse{50%{transform:scale(1.12);box-shadow:0 0 0 2px #f2d488,0 0 20px 8px rgba(255,200,90,.7),0 3px 5px rgba(0,0,0,.6)}}

/* --- Titelbild: Knöpfe auf einer dunklen Lacktafel im Goldrahmen, Ornamentband unter dem Titel --- */
#start .tbox{padding:26px 34px 18px;background:radial-gradient(ellipse at 50% 40%,rgba(10,6,2,.55),rgba(10,6,2,0) 72%)}
#start h2{margin-bottom:6px}
#start h2::after{content:"";display:block;height:18px;margin:10px auto 14px;width:min(360px,70vw);background:var(--orn) center/64px 18px repeat-x;opacity:.9}
#start .tbox button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:240px}
#start .tbox button .ic{width:20px;height:20px}

/* ===================== Abspann ===================== */
#abspann{position:absolute;inset:0;z-index:40;overflow:hidden;background:var(--velvet);color:#f6e8c4;font-family:Georgia,serif;text-align:center}
#abspann .roll{position:absolute;left:50%;transform:translateX(-50%);width:min(520px,90%);top:100%;animation:abroll 46s linear forwards}
#abspann h1{margin:0;font:900 clamp(44px,9vw,84px) Georgia,serif;background:linear-gradient(#fff3b8,#ecc46a 40%,#a46c22 60%,#f4d88a);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
#abspann h2{margin:4px 0 40px;font:italic bold 20px Georgia,serif}#abspann h3{margin:46px 0 14px;color:#ffd25a;font:bold 18px Georgia,serif;letter-spacing:.08em;text-transform:uppercase}
#abspann .end{font:italic 28px Georgia,serif;margin:0}#abspann .end.small{font-size:18px;opacity:.7;margin-top:6px}
#abspann .c{display:flex;justify-content:space-between;gap:20px;padding:5px 0;border-bottom:1px solid rgba(200,148,58,.25)}#abspann .c b{color:#ffd25a}#abspann .c span{font-style:italic;opacity:.85}
#abspann .btns{display:flex;gap:10px;justify-content:center;margin:40px 0 60px}
@keyframes abroll{to{top:0;transform:translate(-50%,calc(-100% + 480px))}}

/* ===================== Textgröße der Leseleiste (Einstellungen) ===================== */
#box{font-size:calc(clamp(12px,1.8vw,16px) * var(--boxs,1))}
.boxprev{margin:6px 2px 2px;padding:8px 10px;background:rgba(0,0,0,.35);border:1px solid rgba(200,148,58,.35);border-radius:3px;color:#f6ead0;font-family:Georgia,serif;line-height:1.35}
.boxprev b{color:var(--gold);font-variant:small-caps}
/* Einstellungen: Fenster passt immer ins Bild (scrollt bei Bedarf), Zeilen etwas enger */
.ovl.menuO .pan.menu{max-height:calc(100% - 20px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c8943a transparent}
.ovl.menuO .opts{gap:4px}.ovl.menuO .opts .mb{padding-top:5px;padding-bottom:5px}

/* gestufte Hinweise (1.86) */
.nextbox .nh.sol{border-top:1px dashed rgba(255,210,90,.35);padding-top:5px;color:#fff3d8}
.nextbox .tipmore{margin-top:7px;padding:4px 10px;font:12px Georgia,serif}
.lg.ok{background:#3a7a3a;color:#e8ffe0;font-size:8px;line-height:10px;text-align:center}

/* ===================== Augenansicht im Stil der Welt (1.88) =====================
   Glühwürmchen-Lichter statt Messing-Plaketten, Beschriftung auf kleinen Holzbrettchen mit Nägeln (wie die Wegschilder),
   Ausgänge als Brettchen mit Pfeilspitze, Figuren und Gegenstände bekommen einen warmen Lichtsaum. */
#spots{background:radial-gradient(ellipse at 50% 50%,rgba(20,12,4,0) 35%,rgba(12,8,4,.5) 100%),linear-gradient(rgba(30,20,60,.08),rgba(30,20,60,.08))}
#game.spotlit .room.on .interactive image{filter:drop-shadow(0 0 2px rgba(255,236,170,.95)) drop-shadow(0 0 9px rgba(255,190,80,.55))}
#game.spotlit .room.on .interactive image.spr{filter:drop-shadow(0 0 2px rgba(220,236,255,.9)) drop-shadow(0 0 10px rgba(150,190,255,.5))}
#spots .spot i{position:relative;width:34px;height:34px;border:none;border-radius:50%;box-shadow:none;background:radial-gradient(circle,#fffbe6 0 9%,rgba(255,226,140,.95) 17%,rgba(255,176,60,.45) 38%,rgba(255,150,40,.12) 58%,transparent 70%);
  animation:ffly 2.6s ease-in-out infinite;mix-blend-mode:screen}
#spots .spot i .ic{display:none}
#spots .spot i::before,#spots .spot i::after{content:'';position:absolute;width:3px;height:3px;border-radius:50%;background:#fff6d0;box-shadow:0 0 5px 2px rgba(255,214,120,.8);left:50%;top:50%;animation:spark 3.2s linear infinite}
#spots .spot i::after{animation-delay:-1.6s;animation-duration:2.7s}
#spots .spot.talk i{background:radial-gradient(circle,#f4fbff 0 9%,rgba(190,220,255,.95) 17%,rgba(120,170,255,.45) 38%,rgba(100,150,255,.12) 58%,transparent 70%)}
#spots .spot.talk i::before,#spots .spot.talk i::after{background:#eaf4ff;box-shadow:0 0 5px 2px rgba(150,190,255,.8)}
#spots .spot.exit i{background:radial-gradient(circle,#fff0d8 0 9%,rgba(255,150,80,.95) 17%,rgba(230,80,30,.45) 38%,rgba(200,60,20,.12) 58%,transparent 70%)}
#spots .spot.exit i::before,#spots .spot.exit i::after{background:#ffd8b0;box-shadow:0 0 5px 2px rgba(255,120,50,.8)}
#spots .spot.hand i{background:radial-gradient(circle,#f8ffe6 0 9%,rgba(220,240,130,.95) 17%,rgba(170,210,60,.45) 38%,rgba(140,190,40,.12) 58%,transparent 70%)}
#spots .spot span{position:relative;margin-top:2px;padding:3px 11px 3px;border:none;border-radius:2px;border-image:none;
  background:repeating-linear-gradient(1.5deg,rgba(50,24,8,.22) 0 1px,transparent 1px 3.5px),repeating-linear-gradient(-.8deg,rgba(255,220,160,.08) 0 2px,transparent 2px 9px),linear-gradient(#a5743f,#7a4e26 55%,#55331a);
  box-shadow:inset 0 1px 0 rgba(255,222,170,.4),inset 0 -2px 3px rgba(0,0,0,.45),inset 1px 0 0 rgba(255,222,170,.15),0 3px 5px rgba(0,0,0,.55);
  color:#f6e6c0;font:bold 12px Georgia,serif;letter-spacing:.02em;text-shadow:0 1px 1px rgba(0,0,0,.85),0 -1px 0 rgba(60,30,10,.6)}
#spots .spot span::before,#spots .spot span::after{content:'';position:absolute;top:50%;width:3px;height:3px;margin-top:-1.5px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#d8d4cc,#4a4640 70%);box-shadow:0 .5px 0 rgba(255,230,190,.3)}
#spots .spot span::before{left:3px}#spots .spot span::after{right:3px}
#spots .spot.exit span{color:#ffe2a8;background:repeating-linear-gradient(1.5deg,rgba(40,16,4,.25) 0 1px,transparent 1px 3.5px),linear-gradient(#8e5a2c,#643a18 55%,#43240e);box-shadow:none;border-radius:0;
  filter:drop-shadow(0 3px 3px rgba(0,0,0,.6));padding:3px 16px 3px 11px;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,0 100%)}
#spots .spot.exit.dl span{padding:3px 11px 3px 16px;clip-path:polygon(9px 0,100% 0,100% 100%,9px 100%,0 50%)}
#spots .spot.exit.du span{padding:9px 11px 3px;clip-path:polygon(0 7px,50% 0,100% 7px,100% 100%,0 100%)}
#spots .spot.exit span::before{left:5px}#spots .spot.exit span::after{right:12px}
#spots .spot.exit.dl span::before{left:12px}#spots .spot.exit.dl span::after{right:5px}
#spots .spot.exit.du span::before{left:5px;margin-top:2px}#spots .spot.exit.du span::after{right:5px;margin-top:2px}
@keyframes ffly{0%,100%{transform:translate(0,0) scale(1);opacity:.95}25%{transform:translate(2px,-3px) scale(1.08);opacity:1}50%{transform:translate(-1px,-5px) scale(.92);opacity:.75}75%{transform:translate(-3px,-2px) scale(1.05);opacity:1}}
@keyframes spark{0%{transform:rotate(0) translateX(12px) scale(1);opacity:0}15%{opacity:1}100%{transform:rotate(360deg) translateX(12px) scale(.4);opacity:0}}
@media (prefers-reduced-motion:reduce){#spots .spot i,#spots .spot i::before,#spots .spot i::after{animation:none}}
/* Notizbuch: Figuren-Steckbriefe */
.b-figuren .figs{display:grid;gap:10px}
.b-figuren .fig{background:rgba(255,240,210,.06);border:1px solid rgba(232,200,140,.25);border-radius:8px;padding:8px 12px}
.b-figuren .fig h4{margin:0 0 4px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.b-figuren .fig h4 small{opacity:.65;font-weight:normal}
.b-figuren .fig .lvl{margin-left:auto;letter-spacing:2px;color:#e8c070;font-size:.85em}
.b-figuren .fig p{margin:4px 0;line-height:1.4}
.b-figuren .fig p.lock{opacity:.45;font-style:italic}

/* Sprachwahl auf dem Titelbild */
#start .tbox .tlang{display:flex;gap:6px;margin-top:4px}#start .tbox .tlang button{min-width:0;padding:4px 10px;font:bold 12px Georgia;opacity:.7}#start .tbox .tlang button.on{opacity:1;outline:2px solid #ffd25a}
