:root {
  --holz: #6b4423; --holz-hell: #a8743f; --gold: #f2c35b; --rot: #d9433a; --oel: #f0a530;
  --nacht: #0b0d14; --text: #fff6e6; --panel: rgba(30, 20, 12, .92);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--nacht); color: var(--text); overflow: hidden;
  font: 600 15px/1.3 "Trebuchet MS", system-ui, sans-serif; touch-action: none; user-select: none; -webkit-user-select: none; }
#welt { position: fixed; inset: 0; width: 100%; height: 100%; display: block; filter: saturate(1.12) contrast(1.06); } /* Farbgrade: satter, mehr Tiefe in den Schatten */
#dunkel { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 60% at 50% 52%, transparent 40%, rgba(2, 3, 6, 0.92) 100%); }
button { font: inherit; color: inherit; cursor: pointer; }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > *, #hud button { pointer-events: auto; }
.oben-links { position: absolute; left: max(12px, env(safe-area-inset-left)); top: 10px; display: grid; gap: 6px; width: min(36vw, 240px); }
.balken { position: relative; height: 18px; border-radius: 10px; background: rgba(0,0,0,.55); border: 2px solid var(--holz-hell); overflow: hidden; }
.balken i { position: absolute; inset: 0 auto 0 0; width: 100%; transition: width .2s; }
.leben i { background: linear-gradient(#ff7a6e, var(--rot)); }
.leben.zuck { animation: zuck .3s; }
@keyframes zuck { 0% { transform: scale(1); } 30% { transform: scale(1.08) translateX(-3px); filter: brightness(1.6); } 60% { transform: translateX(3px); } 100% { transform: none; } }
.oel i { background: linear-gradient(#ffd27a, var(--oel)); }
.balken span { position: absolute; left: 6px; top: -1px; font-size: 13px; text-shadow: 0 1px 2px #000; }
.ort { font-size: 13px; text-shadow: 0 1px 3px #000; }
.ort b { color: var(--gold); }
#karte { position: absolute; right: max(12px, env(safe-area-inset-right)); top: 10px; width: 112px; height: 112px;
  border-radius: 12px; border: 2px solid var(--holz-hell); background: rgba(0,0,0,.5); pointer-events: none; }

#k-ton, #k-zoom { position: absolute; right: max(12px, env(safe-area-inset-right)); top: 130px; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--holz-hell); background: rgba(0,0,0,.5); font-size: 18px; }
#k-zoom { top: 178px; }
#k-pause { position: absolute; right: max(12px, env(safe-area-inset-right)); top: 226px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--holz-hell); background: rgba(0,0,0,.5); font-size: 18px; }
#pause { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 20; }
#pause[hidden] { display: none; }
#pause .panel { display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: var(--panel); border: 3px solid var(--gold); width: min(80vw, 300px); }
#pause b { color: var(--gold); font-size: 22px; text-align: center; }
#pause button { border: 2px solid var(--holz-hell); background: var(--holz); border-radius: 10px; padding: 12px; font-size: 18px; }
#stick { position: absolute; left: max(24px, env(safe-area-inset-left)); bottom: 24px; width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 3px solid rgba(168,116,63,.7); pointer-events: none; }
#stick .knauf { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--holz-hell), var(--holz)); box-shadow: 0 3px 8px #000a; }
@media (hover: hover) and (pointer: fine) { #stick { display: none; } }

.knoepfe-rechts { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: 18px; width: 200px; height: 170px; }
.knoepfe-rechts button { position: absolute; width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--holz-hell);
  background: radial-gradient(circle at 35% 35%, #7d5530, #3d2512); font-size: 24px; box-shadow: 0 3px 8px #000a; }
.knoepfe-rechts button:active { transform: scale(.92); }
.knoepfe-rechts .gross { width: 84px; height: 84px; right: 0; bottom: 0; font-size: 34px; }
#k-aktion { right: 96px; bottom: 6px; }
#k-trank { right: 20px; bottom: 96px; }
#k-rucksack { right: 104px; bottom: 82px; }
#k-trank small { position: absolute; right: -4px; bottom: -4px; background: var(--rot); border-radius: 10px; padding: 0 6px; font-size: 12px; }
#k-aktion.bereit, #k-trank.bereit { border-color: var(--gold); box-shadow: 0 0 14px var(--gold); }

#meldung { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); padding: 8px 16px; border-radius: 12px;
  background: var(--panel); border: 2px solid var(--holz-hell); opacity: 0; transition: opacity .3s; pointer-events: none; text-align: center; max-width: 70vw; }
#meldung.an { opacity: 1; }
#schaden { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px rgba(217,67,58,.9); opacity: 0; transition: opacity .25s; }
#schaden.an { opacity: 1; transition: none; }

/* Rucksack */
#rucksack { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; align-content: center; }
#rucksack .panel[hidden] { display: none; }
#rucksack[hidden] { display: none; }
#rucksack .tasche { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 16px;
  background: var(--panel); border: 3px solid var(--holz-hell); max-width: 96vw; }
.raster { --f: min(9.5vh, 6.2vw, 52px); display: grid; grid-template-columns: repeat(8, var(--f)); grid-template-rows: repeat(4, var(--f)); gap: 3px; }
.feld { border: 0; border-radius: 6px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(168,116,63,.35); }
.ding { position: relative; z-index: 1; touch-action: none; cursor: grab; border: 2px solid var(--holz-hell); border-radius: 8px; background: rgba(255,240,210,.92); padding: 3px; }
.ding .bild { display: block; width: 100%; height: 100%; background-repeat: no-repeat; border-radius: 4px; }
.ding.zieht { z-index: 5; pointer-events: none; opacity: .85; cursor: grabbing; }
.ding .zahl { position: absolute; right: 2px; bottom: 0; font-size: 13px; font-weight: bold; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.ding.gewaehlt { border-color: var(--gold); box-shadow: 0 0 12px var(--gold); }
.info { width: min(26vw, 200px); display: grid; gap: 6px; font-size: 14px; }
.info b { color: var(--gold); font-size: 16px; }
.info small { opacity: .7; font-weight: 400; }
.ding .pfeil { position: absolute; left: 3px; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: rgba(20,12,6,.8); display: grid; place-items: center; font-size: 20px; font-weight: bold; font-style: normal; line-height: 1; }
.pfeil.plus, .urteil.plus { color: #6fe06a; } .pfeil.minus, .urteil.minus { color: #ff6a5a; } .pfeil.gleich, .pfeil.teils, .urteil.gleich, .urteil.teils { color: #f2c35b; }
.info .urteil { font-weight: bold; font-size: 15px; } .info .knoepfe button.tipp { box-shadow: 0 0 0 2px #6fe06a, 0 0 10px #6fe06a; }
.info .vg { font-size: 13px; } .info .vg.plus { color: #8fe08a; } .info .vg.minus { color: #ff8a7a; }
.info .knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.info .knoepfe button, #start button { border: 2px solid var(--holz-hell); background: var(--holz); border-radius: 10px; padding: 8px 14px; }
#rucksack .tasche > .zu { position: absolute; right: -14px; top: -14px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--holz-hell); background: var(--holz); }

/* Rätsel */
#raetsel { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; }
#raetsel[hidden] { display: none; }
#raetsel .panel { position: relative; display: grid; gap: 10px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 3px solid #6ac8ff; box-shadow: 0 0 24px rgba(106,200,255,.35); width: min(92vw, 460px); text-align: center; }
#raetsel b { color: #9fdcff; font-size: 17px; }
#raetsel p { margin: 0; white-space: pre-line; font-size: 17px; line-height: 1.45; }
#raetsel .antworten { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#raetsel .antworten button { border: 2px solid var(--holz-hell); background: var(--holz); border-radius: 10px; padding: 10px; font-size: 18px; }
#raetsel .antworten button:disabled { opacity: .3; text-decoration: line-through; }
#raetsel .zu { position: absolute; right: -14px; top: -14px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--holz-hell); background: var(--holz); }

/* Laden */
#treppe { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; }
#treppe[hidden] { display: none; }
#treppe .panel { position: relative; display: grid; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 3px solid var(--gold); width: min(92vw, 420px); }
#treppe b { color: var(--gold); font-size: 18px; text-align: center; }
#treppe .werte { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; font-size: 17px; }
#treppe .werte span:nth-child(even) { text-align: right; font-weight: bold; }
#treppe .werte .voll { color: #9be37a; }
#treppe .tipp { margin: 0; font-size: 15px; opacity: .8; text-align: center; }
#treppe .knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#treppe .knoepfe button { border: 2px solid var(--holz-hell); background: var(--holz); border-radius: 10px; padding: 10px; font-size: 17px; }
#treppe .knoepfe .runter { border-color: var(--gold); }
#treppe .zu { position: absolute; right: -14px; top: -14px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--holz-hell); background: var(--holz); }
#laden { position: relative; display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--panel); border: 3px solid var(--holz-hell); width: min(92vw, 420px); align-self: center; }
#laden > div > b { color: var(--gold); font-size: 18px; }
#laden .waren { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#laden .waren button { display: flex; align-items: center; gap: 6px; text-align: left; border: 2px solid var(--holz-hell); background: var(--holz); border-radius: 10px; padding: 6px 8px; font-size: 13px; }
#laden .waren button:disabled { opacity: .4; }
#laden .waren .bild { flex: none; width: 30px; height: 30px; background-repeat: no-repeat; border-radius: 6px; background-color: rgba(255,240,210,.92); }
#laden .waren b { margin-left: auto; color: var(--gold); white-space: nowrap; }
#laden .zu { position: absolute; right: -14px; top: -14px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--holz-hell); background: var(--holz); }

/* Start */
#start { position: fixed; inset: 0; display: grid; place-items: end center; background: var(--nacht) url(assets/titel_quer.jpg) center top / cover no-repeat; } /* Titel steht im Bild, Knöpfe unten über einem dunklen Verlauf */
#start .karte-start { max-width: none; width: 100%; padding: 40px 20px 14px; background: linear-gradient(transparent, rgba(5,8,20,.85) 45%); }
#start h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* nur für Vorleser, sichtbar ist der Titel im Bild */
#start-knoepfe button { background: rgba(60,38,20,.88); }
#start[hidden] { display: none; }
.karte-start { text-align: center; padding: 20px; max-width: 820px; }
.karte-start h1 { margin: 0; font-size: clamp(28px, 6vw, 48px); color: var(--gold); text-shadow: 0 0 24px rgba(242,195,91,.5); }
.unter { opacity: .75; margin: 4px 0 18px; }
#start-knoepfe { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
#start button { font-size: 18px; padding: 12px 22px; }
#start button small { font-size: 13px; opacity: .8; font-weight: 400; }
#start-knoepfe button { width: 240px; }
.hilfe { font-size: 12px; opacity: .6; font-weight: 400; margin-top: 18px; }

#film { position: fixed; inset: 0; z-index: 8; background: #000; cursor: pointer; } #film[hidden] { display: none; }
#film video { width: 100%; height: 100%; object-fit: contain; } #film span { position: absolute; right: 16px; bottom: 12px; font-size: 13px; opacity: .6; }
#quer { position: fixed; inset: 0; z-index: 9; display: none; place-items: end center; padding-bottom: 6vh; background: var(--nacht) url(assets/titel_hoch.jpg) center / cover no-repeat; font-size: 20px; text-shadow: 0 2px 8px #000; }
@media (orientation: portrait) and (pointer: coarse) { #quer { display: grid; } }

/* Schmiede: gleiche Optik wie der Laden, eine Zeile je Ausrüstungsplatz */
#schmiede { position: relative; display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--panel); border: 3px solid var(--holz-hell); width: min(94vw, 480px); max-height: 92vh; overflow: hidden auto; }
#schmiede > div > b { color: var(--gold); font-size: 18px; }
#schmiede .plaetze { display: grid; gap: 6px; }
#schmiede .plaetze button { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--holz-hell); background: var(--holz); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
#schmiede .plaetze button:disabled { opacity: .55; }
.sym { display: inline-block; width: 20px; height: 20px; margin: 0 2px; vertical-align: middle; background-size: 400% 400%; background-repeat: no-repeat; background-color: rgba(255,240,210,.92); border-radius: 5px; }
.sym.gross { flex: none; width: 44px; height: 44px; border-radius: 8px; }
.sym.leer { filter: grayscale(1); opacity: .45; }
.roh { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
#schmiede .fehlt { color: #ff8a7a; font-weight: bold; }
#schmiede .wirkung { opacity: .75; }
#schmiede .zu { position: absolute; right: -14px; top: -14px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--holz-hell); background: var(--holz); }
#rucksack .roh { display: block; margin: 4px 0; width: 130px; } /* schmal, sonst wird die Tasche am Handy zu breit */

#muenzen { display: inline-block; }
#muenzen.hops { animation: hops 0.35s ease-out; }
@keyframes hops { 40% { transform: scale(1.45) translateY(-2px); color: #ffd040; } }
#gebiet { position: fixed; left: 0; right: 0; top: 26%; text-align: center; pointer-events: none; opacity: 0; color: #f2c35b; }
#gebiet b { display: block; font-size: clamp(30px, 6vw, 56px); letter-spacing: .12em; text-shadow: 0 0 18px rgba(242,140,40,.55), 0 3px 0 #2a1608; }
#gebiet small { display: inline-block; margin-top: 6px; padding: 2px 18px; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: #e8dcc0;
  border-top: 1px solid rgba(242,195,91,.5); border-bottom: 1px solid rgba(242,195,91,.5); }
#gebiet.an { animation: gebiet 3.2s ease-out forwards; }
@keyframes gebiet { 0% { opacity: 0; transform: translateY(8px); letter-spacing: .3em; } 20%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#schaden.knapp::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 140px rgba(190,20,20,.75); animation: knapp 1.1s ease-in-out infinite; }
@keyframes knapp { 0%, 100% { opacity: .25; } 15% { opacity: 1; } 35% { opacity: .5; } 50% { opacity: .9; } }
#schaden.knapp:not(.an) { opacity: 1; box-shadow: none; }
.fliegt { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255,200,90,.8)); }
#k-rucksack.hops { animation: hops 0.35s ease-out; }

/* Ausrüstung: Figur in der Mitte, links Helm, Rüstung, Stiefel aus der Schmiede, rechts Waffe und Schild zum Tauschen */
#ausruestung { display: grid; grid-template-columns: auto auto auto; gap: 4px; align-items: start; }
#ausruestung .spalte { display: grid; gap: 4px; }
#ausruestung .platz { position: relative; width: 48px; height: 48px; padding: 2px; border: 2px solid rgba(168,116,63,.6); border-radius: 8px; background: rgba(0,0,0,.45); display: grid; place-items: center; font-size: 10px; line-height: 1.1; text-align: center; color: rgba(255,240,210,.55); }
#ausruestung .platz .sym { width: 40px; height: 40px; margin: 0; }
#ausruestung .platz.voll { background: rgba(255,240,210,.92); border-color: var(--holz-hell); }
#ausruestung button.platz.voll:hover { border-color: var(--gold); }
#ausruestung .platz.hoch { height: 100px; }
#ausruestung .platz.hoch { overflow: hidden; }
#ausruestung .platz.hoch .sym { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; transform: translate(-50%, -50%) rotate(-45deg); background-color: transparent; }
#ausruestung .platz.basis { opacity: .85; }
#figur { width: 120px; height: 160px; border-radius: 10px; background: radial-gradient(circle at 50% 60%, #4a3420, #120c08); }
#ausruestung .farben { grid-column: 1 / -1; display: flex; gap: 5px; justify-content: center; align-items: center; font-size: 11px; opacity: .9; }
#ausruestung .farben button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); padding: 0; }
#ausruestung .farben button.an { border-color: var(--gold); box-shadow: 0 0 6px var(--gold); }
.haendler .zahlt { font-size: 12px; opacity: .75; }
@media (max-width: 1000px) { #rucksack.handel #ausruestung { display: none; } #rucksack.handel .raster { --f: min(8vh, 4.4vw, 44px); } #rucksack.handel .info { width: 150px; } #rucksack.handel #laden { width: min(40vw, 300px); } #rucksack.handel #laden .waren { grid-template-columns: 1fr; }
  #rucksack.handel { flex-wrap: nowrap; gap: 12px; } #rucksack.handel .tasche { padding: 10px; gap: 10px; } #rucksack.handel .tasche .roh { display: none; } #rucksack.handel #schmiede { width: min(40vw, 300px); } #rucksack.handel .panel > .zu { right: 4px; top: 4px; } }
#lager { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--panel); border: 3px solid var(--gold); }
#lager .zu { position: absolute; right: -14px; top: -14px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--holz-hell); background: var(--holz); }
/* hohe Dinge (Bogen, Schwert): Symbol ist quadratisch und schräg, also drehen statt verzerren */
.ding.hoch { overflow: hidden; }
.ding.hoch .bild { position: absolute; left: 50%; top: 50%; width: calc(var(--f) * var(--hoehe) * .68); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-45deg); }
#schmiede .kaufen { display: grid; gap: 6px; }
#schmiede .kaufen button { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--gold); background: var(--holz); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
#schmiede .kaufen button:disabled, #brauen button:disabled { opacity: .45; }
#brauen { position: relative; display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--panel); border: 3px solid #6ac8ff; width: min(44vw, 380px); max-height: 92vh; overflow: hidden auto; align-self: center; }
#brauen .rezepte { display: grid; gap: 6px; }
#brauen .rezepte button { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--holz-hell); background: var(--holz); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
#brauen .rezepte .sym { background-image: url(assets/icons_extra.jpg); }
#brauen .fehlt { color: #ff8a7a; }
#brauen .zu { position: absolute; right: -14px; top: -14px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--holz-hell); background: var(--holz); }
#laden .waren .brauen { grid-column: 1 / -1; border-color: #6ac8ff; }
#wirkung { font-size: 14px; margin-top: 2px; text-shadow: 0 0 3px #000; }
/* Handy quer (auch als Home-Bildschirm-App, ca. 390 px hoch): Ton, Zoom, Pause oben neben die Karte, sonst liegen sie unter dem Trank */
@media (max-height: 500px) {
  #karte { width: 84px; height: 84px; }
  #start-knoepfe { gap: 8px; flex-wrap: nowrap; } #start-knoepfe button { width: 200px; font-size: 14px; padding: 6px 10px; } #start button small { font-size: 11px; } #start .hilfe { margin-top: 6px; } /* Handy quer: drei Helden in einer Reihe, Titel im Bild bleibt frei */
  #k-ton, #k-zoom, #k-pause { top: 10px; width: 36px; height: 36px; font-size: 16px; }
  #rucksack .tasche { padding: 10px; gap: 10px; } #rucksack #figur { display: none; } #rucksack .tasche .roh { width: 92px; font-size: 11px; } #rucksack .tasche .info { width: 150px; font-size: 13px; } /* sonst fallen Benutzen/Ablegen rechts raus */
  #rucksack { align-items: flex-start; align-content: flex-start; overflow-y: auto; padding: 4px 0; } #rucksack .info b { order: -2; } #rucksack .info .knoepfe { order: -1; } #rucksack .info small { display: none; } /* Knöpfe gleich unter den Namen, Fenster scrollbar: sonst liegen sie unter dem Bildschirmrand */
  #ausruestung .farben { flex-wrap: wrap; width: 100px; } #rucksack .tasche .raster { --f: min(9.5vh, calc((100vw - 460px) / 8), 52px); } /* Halstuch-Farben umbrechen, Raster nach Breite: alles passt nebeneinander */
  #rucksack.handel .raster { --f: min(9vh, calc((100vw - 400px) / 16), 44px); } #rucksack.handel .info { width: 110px; font-size: 12px; } #rucksack.handel #lager, #rucksack.handel .tasche { padding: 8px; gap: 8px; } /* Lager, Laden, Schmiede: zwei Fenster nebeneinander, Raster also halb so breit */
  #k-ton { right: calc(max(12px, env(safe-area-inset-right)) + 94px); } #k-zoom { right: calc(max(12px, env(safe-area-inset-right)) + 136px); } #k-pause { right: calc(max(12px, env(safe-area-inset-right)) + 178px); }
}
/* Handy quer mit Safari-Leisten: nur ca. 216 px hoch */
@media (max-height: 320px) {
  .oben-links { width: min(30vw, 200px); gap: 3px; top: 6px; } .balken { height: 12px; } .balken span { font-size: 10px; top: -2px; } .ort { font-size: 11px; }
  #karte { width: 72px; height: 72px; top: 6px; }
  #k-ton, #k-zoom, #k-pause { top: 6px; width: 32px; height: 32px; font-size: 14px; }
  #k-ton { right: calc(max(12px, env(safe-area-inset-right)) + 80px); } #k-zoom { right: calc(max(12px, env(safe-area-inset-right)) + 116px); } #k-pause { right: calc(max(12px, env(safe-area-inset-right)) + 152px); }
  .knoepfe-rechts { transform: scale(.68); transform-origin: right bottom; bottom: 8px; }
  #stick { transform: scale(.72); bottom: 8px; } /* Mitte bleibt unter dem Finger */
  #rucksack { gap: 10px; } #rucksack .panel { max-height: 96vh; overflow-y: auto; } #rucksack .panel > .zu { right: 4px; top: 4px; }
  #rucksack.handel .info { width: 120px; font-size: 12px; } #rucksack.handel .info b { font-size: 14px; }
  #rucksack.handel #lager { padding: 10px; gap: 10px; }
  #start { overflow-y: auto; } #start .karte-start { padding: 20px 6px 6px; } #start .unter, #start .hilfe { display: none; } /* sonst deckt die Karte den Titel im Bild zu */
  #start-knoepfe { gap: 6px; flex-wrap: nowrap; } #start-knoepfe button { width: 200px; font-size: 14px; padding: 6px 10px; } #start button small { font-size: 11px; }
}
.balken { box-shadow: 0 2px 6px rgba(0,0,0,.6), inset 0 2px 4px rgba(0,0,0,.6); }
.balken i { box-shadow: inset 0 4px 0 rgba(255,255,255,.28), inset 0 -3px 0 rgba(0,0,0,.22); }
#meldung { border-color: var(--gold); box-shadow: 0 4px 14px rgba(0,0,0,.6), 0 0 18px rgba(242,195,91,.25); text-shadow: 0 1px 2px #000; transform: translate(-50%, -10px); transition: opacity .3s, transform .3s; }
#meldung.an { transform: translate(-50%, 0); }
