:root {
  --stein: #26212a;
  --stein2: #1a161e;
  --rand: #6b5a3a;
  --gold: #e3c25a;
  --text: #eadfc8;
  --blut: #b0182a;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #07050b; color: var(--text); font-family: var(--serif); user-select: none; -webkit-user-select: none; }
#welt { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; cursor: default; touch-action: none; }
[hidden] { display: none !important; }

button {
  font-family: var(--serif); font-size: 14px; color: var(--text); cursor: pointer;
  background: linear-gradient(#3a3340, #26212a); border: 1px solid var(--rand); border-radius: 4px;
  padding: 6px 11px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 4px rgba(0,0,0,0.5);
}
button:hover { background: linear-gradient(#4a4252, #302a38); border-color: var(--gold); }
button:disabled, button.aus { opacity: 0.45; cursor: not-allowed; }
button.aktiv { border-color: var(--gold); background: linear-gradient(#6a5420, #3d3010); box-shadow: 0 0 10px rgba(227,194,90,0.45), inset 0 1px 0 rgba(255,255,255,0.15); }
button.gross { font-size: 18px; padding: 10px 26px; color: #fff3c8; }
button span:first-child { display: inline-block; min-width: 14px; margin-right: 5px; color: #b9a46a; font-size: 11px; }

#hud {
  position: fixed; top: 0; left: 0; right: 0; display: flex; gap: 8px; align-items: center; padding: 6px 10px;
  background: linear-gradient(rgba(10,7,14,0.92), rgba(10,7,14,0.55)); border-bottom: 1px solid #3a3040; pointer-events: none;
}
#hud > * { pointer-events: auto; }
#hud .spacer { flex: 1; pointer-events: none; }
.chip { display: flex; align-items: center; gap: 7px; padding: 4px 10px; background: rgba(0,0,0,0.45); border: 1px solid #4a3f2a; border-radius: 4px; min-height: 30px; }
.chip b { font-size: 16px; color: #fff3c8; font-variant-numeric: tabular-nums; }
.chip small { color: #9a8f78; }
.bar { width: 90px; height: 10px; background: #0b090e; border: 1px solid #4a3f2a; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 50%; }
#b-mana { background: linear-gradient(#6aa8ff, #2f56a8); }
#b-herz { background: linear-gradient(#e0364a, #8a1020); }
.sym { width: 16px; height: 16px; display: inline-block; border-radius: 50%; }
.sym.gold { background: radial-gradient(circle at 35% 30%, #fff3b0, #f2c230 55%, #9a7010); }
.sym.mana { background: radial-gradient(circle at 35% 30%, #cfe6ff, #4a86e0 60%, #1c3a78); }
.sym.herz { background: radial-gradient(circle at 35% 30%, #ff9aa0, #d9304a 60%, #6a0a18); }
.sym.welle { background: linear-gradient(135deg, #cfd6e4 0 45%, #2f56a8 45%); border-radius: 3px; }
.sym.krea { background: radial-gradient(circle at 40% 35%, #8fbf4a, #3f6a1a); }

#leiste {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  padding: 8px 10px; background: linear-gradient(rgba(10,7,14,0.55), rgba(10,7,14,0.94)); border-top: 1px solid #3a3040;
}
#leiste .gruppe { display: flex; gap: 6px; padding: 4px 8px; background: rgba(0,0,0,0.35); border: 1px solid #3a3040; border-radius: 6px; }
#leiste button em { font-style: normal; color: var(--gold); margin-left: 4px; font-size: 12px; }
#leiste button i.sw { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border: 1px solid rgba(0,0,0,0.6); }

#meldungen { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; z-index: 5; }
.meldung { padding: 7px 16px; background: rgba(12,8,16,0.9); border: 1px solid var(--rand); border-radius: 4px; color: #fff3c8; font-size: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.6); animation: ein 0.25s ease-out; transition: opacity 0.6s; }
.meldung.warn { border-color: #d9534f; color: #ffd0c8; }
.meldung.gut { border-color: #58c15a; color: #d8ffd8; }
.meldung.aus { opacity: 0; }
@keyframes ein { from { transform: translateY(-8px); opacity: 0; } }

#hinweis { position: fixed; left: 50%; top: 48px; transform: translateX(-50%); max-width: min(760px, 92vw); padding: 7px 16px; background: rgba(12,8,16,0.82); border: 1px solid #5a4a2a; border-radius: 4px; font-size: 14px; color: #e8dcb8; text-align: center; pointer-events: none; }

#info { position: fixed; right: 10px; top: 54px; width: 220px; padding: 10px 12px; background: rgba(12,8,16,0.9); border: 1px solid var(--rand); border-radius: 6px; font-size: 13px; pointer-events: none; }
#info h3 { margin: 0 0 4px; font-size: 16px; color: #fff3c8; }
#info .zeile { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
#info .zeile label { width: 58px; color: #9a8f78; }
#info .bar { flex: 1; width: auto; height: 7px; }
#info .bar i { background: #58c15a; }
#info .bar i.warn { background: #d9534f; }
#info .klein { color: #9a8f78; margin-top: 6px; }


.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(rgba(20,10,10,0.55), rgba(5,3,8,0.92)); z-index: 30; }
.karte { width: min(640px, 92vw); max-height: 92vh; overflow: auto; padding: 26px 32px; background: linear-gradient(#2c2530, #1c1720); border: 2px solid var(--rand); border-radius: 8px; box-shadow: 0 0 0 4px #14101a, 0 20px 60px rgba(0,0,0,0.8); text-align: center; }
.karte.schmal { width: min(480px, 92vw); text-align: left; }
.karte h1 { margin: 0 0 4px; font-size: 44px; letter-spacing: 3px; color: #f4d77a; text-shadow: 0 2px 0 #5a1010, 0 0 24px rgba(220,60,40,0.5); }
.karte h2 { margin: 0 0 6px; color: #f4d77a; }
.karte .unter { margin: 0 0 12px; color: #b9a46a; font-style: italic; }
.karte .klein { color: #9a8f78; font-size: 13px; }
.hilfe { text-align: left; margin: 16px 0; padding-left: 20px; line-height: 1.5; font-size: 14.5px; }
.hilfe b { color: #f4d77a; }
textarea { width: 100%; background: #120e16; color: var(--text); border: 1px solid var(--rand); border-radius: 4px; padding: 8px; font-family: var(--serif); font-size: 14px; resize: vertical; user-select: text; -webkit-user-select: text; }
.reihe { display: flex; gap: 8px; margin-top: 10px; }

select, input[type=text] { width: 100%; box-sizing: border-box; min-height: 44px; font: inherit; padding: 8px; margin: 4px 0 10px; background: #1b1410; color: inherit; border: 1px solid #6b5a3e; border-radius: 6px; }
