/* Oberfläche im Anime-Stil (Richtung Genshin): schlicht, dunkel-durchscheinend, runde Formen, feine Goldakzente.
   Wird nach style.css / style3d.css geladen und überschreibt deren Rahmen. */
:root { --glass: rgba(16, 20, 32, .82); --glass-line: rgba(255, 255, 255, .16); --ink: #f4f1ea; --accent: #f3d58a; --hp: #74e05a; --hp2: #36b04a; --foe: #ff7a5a; --foe2: #d2361e; }

#volbox { position: absolute; right: 250px; bottom: 58px; z-index: 45; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; pointer-events: auto; font: 13px var(--font-ui); color: var(--ink, #f2e8d0); }
#volbox[hidden] { display: none; }
#volbox b { font-family: "Cinzel", var(--font-display); color: var(--gold, #f1c75b); }
#volbox label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#volbox input { width: 140px; accent-color: #e0b04a; }

/* 9 Plätze auf der Leiste: Chat etwas schmaler, damit sich nichts überdeckt */
#chat { width: min(380px, 28vw) !important; }
/* Tooltip immer über den Fenstern (Inventar, Charakter, Händler) */
#tip { z-index: 80 !important; }
/* Vergleich mit dem angelegten Gegenstand */
#tip .cmp { margin: 6px 0 4px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.14); }
#tip .cmp-h { color: var(--muted, #b8ad94); font-size: 11px; margin-bottom: 2px; }
#tip .up { color: #6ee07a; font-weight: 600; } #tip .down { color: #ff7a6a; font-weight: 600; }

/* Auflade-Leiste (Zauber) */
#castbar { position: absolute; left: 50%; bottom: 112px; width: 300px; height: 20px; transform: translateX(-50%); z-index: 6; pointer-events: none; opacity: 0; transition: opacity .12s;
  border: 1px solid #c9a24a; border-radius: 3px; background: linear-gradient(#0b0f18, #1a1f2c); box-shadow: 0 0 0 1px #000, 0 4px 14px rgba(0,0,0,.6); --cb: #ffb04a; }
#castbar.on { opacity: 1; }
#castbar .cb-fill { position: absolute; inset: 2px auto 2px 2px; width: 0; max-width: calc(100% - 4px); border-radius: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cb) 55%, #fff), var(--cb) 55%, color-mix(in srgb, var(--cb) 60%, #000)); box-shadow: 0 0 10px var(--cb); }
#castbar .cb-name, #castbar .cb-time { position: absolute; top: 0; line-height: 18px; font: 700 12px var(--font-ui); color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
#castbar .cb-name { left: 8px; } #castbar .cb-time { right: 8px; }

/* Wegweiser oben in der Mitte: Pfeil zum nächsten Ziel, Name, Entfernung */
#guide { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; pointer-events: none;
  padding: 6px 16px 6px 10px; border-radius: 999px; background: linear-gradient(180deg, rgba(20,16,10,.78), rgba(10,8,6,.78)); border: 1px solid rgba(232,196,106,.55); box-shadow: 0 4px 16px rgba(0,0,0,.45); }
#guide[hidden] { display: none; }
#guide .g-arrow { display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; font-size: 22px; color: #ffd76a; text-shadow: 0 0 8px rgba(255,200,80,.8), 0 1px 2px #000; }
#guide .g-arrow { transform-origin: 50% 50%; }
#guide .g-txt { display: flex; flex-direction: column; line-height: 1.15; }
#guide #g-name { font: 700 13px var(--font-ui); color: #ffe7a8; text-shadow: 0 1px 2px #000; }
#guide #g-dist { font: 600 11px var(--font-ui); color: #d8ccb0; }
/* Gespräch der Geschichte */
#story { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 40; width: min(560px, 90vw); padding: 16px 20px 14px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(34,26,16,.96), rgba(18,14,9,.96)); border: 1px solid #b8913e; box-shadow: 0 0 0 1px #000, 0 10px 40px rgba(0,0,0,.6), inset 0 0 30px rgba(232,196,106,.08); }
#story[hidden] { display: none; }
#story.pop { animation: storyPop .22s ease-out; }
@keyframes storyPop { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
#story .st-name { font: 700 15px var(--font-title, var(--font-ui)); color: #ffd76a; letter-spacing: .04em; margin-bottom: 8px; text-shadow: 0 1px 2px #000; }
#story .st-text { font: 15px/1.5 var(--font-ui); color: #f0e6d0; }
#story .st-btns { margin-top: 12px; text-align: right; }
#story .st-x { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: #c8b890; font-size: 20px; cursor: pointer; }
#guide svg.g-arrow { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(255,200,80,.7)); transition: transform .15s linear; }
