:root{--ink:#0b0f12;--fog:#9fc1bd;--gold:#e0b25a;--slime:#7cff3c;--paper:#f2d79a;--ranger:#a8e08a}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#050708;color:var(--fog);font-family:Georgia,'Times New Roman',serif}
#game{display:flex;flex-direction:column;height:100vh;max-width:calc((100vh - 112px)*16/9);margin:0 auto;min-width:320px}
#stage{position:relative;aspect-ratio:16/9;width:100%;container-type:inline-size;background:#000;overflow:hidden;flex:none}
#cv{width:100%;height:100%;display:block;cursor:crosshair;touch-action:none;-webkit-tap-highlight-color:transparent}
body{touch-action:manipulation;-webkit-user-select:none;user-select:none}
#sub{position:absolute;left:50%;bottom:3.5%;transform:translateX(-50%);width:84%;text-align:center;font-size:max(2.35cqw,13px);line-height:1.25;
  text-shadow:0 0 .4cqw #000,.15cqw .15cqw 0 #000,-.15cqw .15cqw 0 #000,.15cqw -.15cqw 0 #000,-.15cqw -.15cqw 0 #000;pointer-events:none}
#sub.yps{color:var(--paper)}#sub.nelly{color:#ffb7a3}#sub.madame{color:#d9b3ff}#sub.zwickel{color:#b6dcff}#sub.schnabel{color:#ffd98a}#sub.glyphus{color:#e6cf9a}#sub.kuerbi{color:#ffb35c}#sub.baron{color:#a8c4ff}#sub.narrator{color:#dfeeea;font-style:italic;letter-spacing:.02em}#sub.grimm{color:#e08a8a}#sub.knorr{color:var(--ranger)}
#status{position:absolute;left:1.5%;top:2%;font-size:max(1.9cqw,12px);color:#dfeee9;text-shadow:0 0 .4cqw #000,.12cqw .12cqw 0 #000;pointer-events:none;letter-spacing:.03em}
#topics{position:absolute;left:3%;right:3%;bottom:3%;display:flex;flex-direction:column;gap:.5cqw;background:linear-gradient(transparent,#000c 35%);padding:3cqw 1cqw .5cqw}
#topics button{all:unset;cursor:pointer;color:var(--paper);font-size:max(2.1cqw,13px);padding:max(.3cqw,5px) 1cqw;border-left:.3cqw solid transparent;text-shadow:.12cqw .12cqw 0 #000}
#topics button:hover{color:#fff;border-left-color:var(--gold);background:#ffffff12}
#topics button.seen{color:#a49878}
#title,#end{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  background:radial-gradient(ellipse at 50% 45%,#0a1418cc,#02060aee 75%);gap:1.2cqw}
#end{background:#000;z-index:3}
.kicker{margin:0;letter-spacing:.5em;text-transform:uppercase;font-size:1.4cqw;color:var(--slime);text-shadow:0 0 1.2cqw #4fd01c}
h1{margin:0;font-size:8.2cqw;font-weight:400;letter-spacing:.06em;color:var(--paper);text-shadow:0 .3cqw 0 #3a2410,0 0 3cqw #000}
h2{margin:0;font-size:2.6cqw;font-weight:400;font-style:italic;color:var(--fog)}
.scene{margin:.8cqw 0 1cqw;color:#7f9a97;font-size:1.5cqw;letter-spacing:.2em;text-transform:uppercase}
.help{max-width:80%;margin:1.5cqw 0 0;font-size:1.2cqw;color:#6c8481;line-height:1.6}
#end p{font-size:2cqw;color:var(--fog);margin:0 0 1.5cqw}
button#start,button#again{font:inherit;font-size:2.2cqw;padding:.9cqw 3cqw;color:var(--ink);background:var(--gold);border:0;cursor:pointer;letter-spacing:.08em;
  box-shadow:0 0 0 .2cqw #5b4217,0 0 3cqw #e0b25a55}
button#start:hover,button#again:hover{background:#f3cd7c}
#title[hidden],#end[hidden],#sub[hidden],#topics[hidden]{display:none}
#bar{display:flex;align-items:center;gap:12px;height:112px;padding:8px 12px;background:linear-gradient(#10181c,#070b0d);border-top:2px solid #26363a;flex:none}
#verbs{display:flex;flex-direction:column;gap:4px}
#verbs button{font:inherit;font-size:14px;padding:4px 14px;min-width:104px;color:#b9d2cd;background:#142126;border:1px solid #2c444a;cursor:pointer;text-align:left}
#verbs button:hover{border-color:var(--gold)}
#verbs button.on{color:var(--ink);background:var(--gold);border-color:var(--gold)}
#inv{flex:1;display:flex;gap:8px;overflow-x:auto;align-items:center;min-height:92px;padding:0 4px}
.slot{flex:none;width:88px;height:88px;background:#0d1519;border:1px solid #2c444a;display:grid;place-items:center;cursor:pointer;position:relative}
.slot img{max-width:76px;max-height:76px;pointer-events:none}
.slot:hover{border-color:var(--gold)}.slot.sel{border-color:var(--slime);box-shadow:0 0 12px #7cff3c66}
.slot span{position:absolute;bottom:1px;left:0;right:0;text-align:center;font-size:10px;color:#9fc1bd;text-shadow:0 0 3px #000}
#tools{display:flex;flex-direction:column;gap:4px}
#tools button{font:inherit;width:36px;height:36px;color:#b9d2cd;background:#142126;border:1px solid #2c444a;cursor:pointer}
#tools button:hover{border-color:var(--gold)}#tools button.off{color:#566}
#carry{position:fixed;z-index:9;width:56px;pointer-events:none;transform:translate(-50%,-50%);filter:drop-shadow(0 0 6px #000)}
#carry[hidden]{display:none}
@media (max-width:700px){#game{height:auto;min-height:100vh}#bar{height:auto;flex-wrap:wrap;gap:8px}#verbs{flex-direction:row;width:100%}#verbs button{flex:1;min-width:0;min-height:40px;text-align:center}#inv{order:3;width:100%;flex-basis:100%}#tools{flex-direction:row;margin-left:auto}.slot{width:64px;height:64px}.slot img{max-width:54px;max-height:54px}.slot span{display:none}}

@media (max-width:700px){h1{font-size:11cqw}h2{font-size:4cqw}.kicker{font-size:2.4cqw}.scene{font-size:2.4cqw}.help{font-size:2.2cqw;max-width:92%}button#start,button#again{font-size:4cqw;padding:2cqw 6cqw}#end h2{font-size:4.2cqw}#end p{font-size:3cqw;max-width:90%}}

button.ghost{font:inherit;font-size:1.7cqw;padding:.5cqw 2cqw;color:var(--gold);background:transparent;border:1px solid #e0b25a88;cursor:pointer;letter-spacing:.06em}button.ghost:hover{background:#e0b25a22}
@media (max-width:700px){button.ghost{font-size:3.2cqw;padding:1.2cqw 4cqw}}

/* Trailer-Schlagzeilen */
#tl{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.tlw{position:absolute;left:50%;width:94%;text-align:center;transform:translateX(-50%) rotate(var(--r,0deg))}
.tl{display:inline-block;font-family:Anton,Impact,'Haettenschweiler','Arial Black',sans-serif;font-weight:900;text-transform:uppercase;letter-spacing:.03em;line-height:1;
  font-size:var(--fs,9cqw);color:#fff;-webkit-text-stroke:.12cqw #000;paint-order:stroke fill;
  text-shadow:.45cqw .45cqw 0 #000,-.25cqw 0 0 #ff2d2d88,.25cqw 0 0 #2de0ff88,0 0 3.5cqw #000;
  animation:slam .38s cubic-bezier(.2,1.7,.35,1) both,shake .2s .36s 2 linear,outro .35s var(--out,1.5s) forwards}
.tl.gold{color:#f6d98c}.tl.red{color:#ff3b30}.tl.green{color:#7cff3c}
.tl.kick{font-family:'Special Elite',Georgia,serif;font-size:2.4cqw;letter-spacing:.35em;color:#e8f1ee;-webkit-text-stroke:0;text-shadow:0 0 1cqw #000,.15cqw .15cqw 0 #000;font-weight:400}
.tl.paper{font-family:Anton,Impact,sans-serif;background:#e8dfc6;color:#151515;-webkit-text-stroke:0;text-shadow:none;padding:1.4cqw 3cqw 1.8cqw;border:.35cqw solid #111;box-shadow:.9cqw .9cqw 0 #000b,0 0 4cqw #000;
  background-image:repeating-linear-gradient(0deg,#0000 0 .5cqw,#0000000d .5cqw .6cqw)}
.tl.paper small{display:block;font-family:'Special Elite',Georgia,serif;font-size:1.9cqw;letter-spacing:.3em;color:#a3160f;margin-bottom:.8cqw;font-weight:400}
@keyframes slam{0%{transform:scale(3.2);opacity:0;filter:blur(1.4cqw)}60%{opacity:1;filter:blur(0)}100%{transform:scale(1);opacity:1}}
@keyframes shake{0%,100%{translate:0 0}25%{translate:-.5cqw .3cqw}50%{translate:.5cqw -.3cqw}75%{translate:-.3cqw -.3cqw}}
@keyframes outro{to{opacity:0;transform:scale(1.06);filter:blur(.6cqw)}}
@media (max-width:700px){.tl{font-size:calc(var(--fs,9cqw)*0.9)}.tl.kick{font-size:3.2cqw}}
