/* ZEITENSTURM – schlanke Anzeigen, das Schlachtfeld steht im Vordergrund. Blau = Streamer links, Rot = Chat rechts. Menü: ../_sdk/menu.css */
:root { --ink: #15171d; --blau: #2f86ff; --rot: #ff4757; --gelb: #ffd84a; --safe-top: 0px; --glas: rgba(12,14,20,.62); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #14121f; color: #fff; font-family: system-ui, 'Segoe UI', sans-serif; -webkit-tap-highlight-color: transparent; user-select: none; }
#game { position: fixed; left: 0; top: var(--cv-cam-top, 0px); width: 100%; height: calc(100% - var(--cv-cam-top, 0px) - var(--cv-cam-bottom, 0px)); display: block; touch-action: none; }
[hidden] { display: none !important; }
#hud { position: fixed; inset: var(--cv-cam-top, 0px) 0 var(--cv-cam-bottom, 0px) 0; z-index: 20; pointer-events: none; container-type: size; font-weight: 900; }
html[data-stream][data-game-orientation=hoch] { --safe-top: 11cqh; }
html[data-facecam="oben"][data-game-orientation] { --safe-top: 0px; }

/* Basis-Leben: zwei dünne Balken mit VS */
#bars { position: absolute; left: 50%; top: calc(var(--safe-top) + 10px); transform: translateX(-50%); width: min(760px, 92cqw); display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.bar { display: grid; gap: 2px; }
.bar .top { font-size: 12px; text-shadow: 1px 1px 0 #000, 0 0 6px rgba(0,0,0,.6); white-space: nowrap; letter-spacing: .04em; }
.bar.r .top { text-align: right; }
.hpbar { position: relative; height: 14px; border-radius: 7px; background: rgba(12,14,20,.7); box-shadow: 0 0 0 2px rgba(0,0,0,.65); overflow: hidden; }
.hpbar .fill { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(180deg, #6fb0ff, var(--blau)); transition: width .25s; }
.bar.r .hpbar .fill { inset: 0 0 0 auto; background: linear-gradient(180deg, #ff8a95, var(--rot)); }
.hpbar .hp { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; text-shadow: 1px 1px 0 #000; font-variant-numeric: tabular-nums; }
.xp { height: 3px; border-radius: 2px; background: rgba(0,0,0,.35); overflow: hidden; } .xp i { display: block; height: 100%; width: 0; background: var(--gelb); transition: width .3s; }
.bar.r .xp i { margin-left: auto; }
.bar.hit .hpbar { animation: hit .25s; } .bar.low .hpbar { box-shadow: 0 0 0 2px #ff2a2a; }
@keyframes hit { 30% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }
.vs { display: grid; justify-items: center; text-shadow: 1px 1px 0 #000; line-height: 1; } .vs b { font-size: 16px; color: var(--gelb); font-style: italic; } .vs small { font-size: 10px; color: #eef1f7; white-space: nowrap; margin-top: 2px; }
#round.low { color: #ff6b5b; animation: blink .6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .5; } }

/* Chat-Befehle: eine schlanke Zeile */
#cmd { position: absolute; left: 50%; top: calc(var(--safe-top) + 52px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 12px 7px; border-radius: 20px; background: rgba(60,12,22,.72); box-shadow: inset 0 0 0 1.5px rgba(255,71,87,.8); white-space: nowrap; overflow: hidden; }
#cmd .head { font-size: 13px; color: #ffd9dd; }
#cmd-rows { display: flex; align-items: center; gap: 6px; font-size: 17px; } #cmd-rows > i { font-style: normal; opacity: .5; font-size: 13px; }
.cmd { display: inline-flex; align-items: center; gap: 3px; }
.cmd b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; color: var(--rot); font-size: 16px; }
#cmd .sbar { position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 1px; background: rgba(0,0,0,.3); overflow: hidden; } #cmd .sbar i { display: block; height: 100%; width: 0; background: #ff8a3a; transition: width .25s; }
#cmd.pulse { animation: pulse 1s ease-in-out 3; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 1.5px #fff, 0 0 22px var(--rot); } }

/* Laden des Streamers: nur Symbol + Preis */
#shop { position: absolute; left: 12px; bottom: 12px; display: grid; gap: 5px; pointer-events: auto; }
#shop .gold { font-size: 16px; text-shadow: 1px 1px 0 #000; } #shop .gold b { color: var(--gelb); font-variant-numeric: tabular-nums; }
#shop-btns { display: flex; gap: 5px; }
#shop-btns button { position: relative; overflow: hidden; width: 52px; padding: 4px 2px 3px; border: 0; border-radius: 10px; background: var(--glas); box-shadow: inset 0 0 0 1.5px rgba(47,134,255,.75); color: #fff; font: inherit; display: grid; justify-items: center; cursor: pointer; }
#shop-btns button:hover { background: rgba(20,40,80,.8); }
#shop-btns button.off { opacity: .45; }
#shop-btns button.nope { animation: hit .25s; box-shadow: inset 0 0 0 1.5px #ff2a2a; }
#shop-btns kbd { position: absolute; left: 4px; top: 2px; font: 800 9px system-ui; color: #9cc8ff; }
#shop-btns .ic { font-size: 20px; line-height: 1.2; } #shop-btns .cost { font-size: 10px; color: var(--gelb); }
#shop-btns .cdfill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(0,0,0,.55); pointer-events: none; }
#queue { display: flex; gap: 3px; } #queue i { position: relative; width: 20px; height: 20px; border-radius: 5px; background: rgba(0,0,0,.3); display: grid; place-items: center; font-style: normal; font-size: 11px; overflow: hidden; }
#queue i:not(.on) { opacity: .4; } #queue u { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--gelb); }

#h-status { position: absolute; left: 12px; bottom: 96px; display: flex; gap: 5px; }
#h-status span { padding: 2px 8px; border-radius: 12px; background: var(--glas); font-size: 12px; } #h-status .bad { box-shadow: inset 0 0 0 1.5px var(--rot); }

/* Einblendungen */
#banner { position: absolute; left: 50%; top: 40cqh; transform: translate(-50%, -50%) scale(.92); display: grid; justify-items: center; gap: 4px; opacity: 0; transition: opacity .25s, transform .25s; max-width: min(80cqw, 760px); text-align: center; }
#banner.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#banner b { font-size: 28px; text-shadow: 2px 2px 0 #000, 0 0 14px rgba(0,0,0,.5); }
#banner.on b { animation: bpop .45s cubic-bezier(.2,1.7,.4,1); }
@keyframes bpop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
#banner span { font-size: 13px; text-shadow: 1px 1px 0 #000, 0 0 8px rgba(0,0,0,.8); }

.hud-buttons { position: absolute; top: calc(var(--safe-top) + 10px); right: 10px; display: flex; flex-direction: column; gap: 5px; pointer-events: auto; }
.hud-buttons button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: var(--glas); color: #fff; font-size: 14px; cursor: pointer; opacity: .8; }
.hud-buttons button:hover, .hud-buttons button.on { opacity: 1; } #autobtn.on { box-shadow: inset 0 0 0 1.5px var(--gelb); }
.demo .hud-buttons, .obs .hud-buttons { display: none; }
#watermark { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 24; pointer-events: none; padding: 4px 12px; background: rgba(0,0,0,.6); font-size: 13px; font-weight: 800; }

/* Ergebnis */
#end { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
#end .card { width: min(420px, 90cqw); padding: 14px; border-radius: 12px; background: rgba(15,17,22,.92); box-shadow: 0 0 0 2px var(--blau); display: grid; gap: 10px; text-align: center; }
#end.lose .card { box-shadow: 0 0 0 2px var(--rot); }
#end .kicker { font-size: 19px; color: #7fb7ff; } #end.lose .kicker { color: #ff6b78; }
#end .cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; } #end .cells div { display: grid; background: #232733; border-radius: 8px; padding: 5px 2px; } #end .cells b { font-size: 16px; } #end .cells span { font-size: 10px; color: #a9b3c7; }
#end h3 { margin: 0 0 4px; font-size: 12px; text-align: left; } #end ol { margin: 0; padding-left: 18px; font-size: 12px; font-weight: 700; text-align: left; } #end ol b { color: #ffb0b8; font-size: 11px; }

/* Querformat: Geschenkleiste links oben, Balken + Befehle rechts daneben */
html:not([data-game-orientation=hoch]) #cv-viewport #cv-gifts[data-gift-layout=strip] { width: calc(42cqw - 20px); }
html:not([data-game-orientation=hoch]) #bars { left: calc(42cqw + 16px); right: 56px; width: auto; transform: none; }
html:not([data-game-orientation=hoch]) #cmd { left: calc(42cqw + 16px + (58cqw - 72px) / 2); }

/* Hochformat: oben Balken + Befehle, darunter die Geschenkleiste; Laden und Knöpfe unten im Boden */
html[data-game-orientation=hoch] #bars { width: 94cqw; gap: 6px; }
html[data-game-orientation=hoch] #cmd { top: calc(var(--safe-top) + 48px); padding: 4px 10px 6px; gap: 6px; }
html[data-game-orientation=hoch] #cmd .head { font-size: 12px; }
html[data-game-orientation=hoch] #cv-viewport #cv-gifts[data-gift-layout=strip] { top: calc(var(--cv-cam-top, 0px) + var(--safe-top) + 86px); }
html[data-game-orientation=hoch] #shop { left: 50%; transform: translateX(-50%); bottom: auto; top: calc(var(--gyp, 60) * 1cqh + 52px); justify-items: center; }
html[data-game-orientation=hoch] #h-status { left: 50%; transform: translateX(-50%); bottom: auto; top: calc(var(--gyp, 60) * 1cqh + 26px); }
html[data-game-orientation=hoch] .hud-buttons { top: auto; bottom: 10px; flex-direction: row; }
html[data-game-orientation=hoch] #banner { top: calc(var(--gyp, 60) * 1cqh - 14cqh); max-width: 92cqw; } html[data-game-orientation=hoch] #banner b { font-size: 20px; } html[data-game-orientation=hoch] #banner span { font-size: 12px; }
@media (prefers-reduced-motion: reduce) { #cmd.pulse, #banner.on b { animation: none; } }

/* Pause-Karte: Karte der Gebiete, nächste Schlacht, Abstimmung, Ruhmeshalle */
#end .card { width: min(560px, 94cqw); pointer-events: auto; max-height: calc(100cqh - var(--safe-top) - 24px); overflow: auto; }
#map { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
#map i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #2a2e3a; font-style: normal; font-size: 14px; opacity: .55; }
#map i.du { background: var(--blau); opacity: 1; } #map i.chat { background: var(--rot); opacity: 1; }
#map i.next { opacity: 1; box-shadow: 0 0 0 2px var(--gelb); animation: blink 1s steps(2) infinite; } #map i.cap { width: 32px; }
#map .score { margin-left: 8px; font-size: 13px; }
#end-next { display: grid; gap: 2px; font-size: 13px; } #end-next b { font-size: 14px; color: var(--gelb); } #end-next span { font-size: 12px; color: #cfd6e4; font-weight: 700; }
#votes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
#votes h3 { margin: 0 0 4px; font-size: 12px; }
#votes .opt { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; width: 100%; margin-bottom: 4px; padding: 4px 6px; border: 0; border-radius: 8px; background: #232733; color: #fff; font: inherit; text-align: left; }
#votes .opt > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; color: var(--rot); font-size: 14px; z-index: 1; }
#vote-me .opt > b { color: var(--blau); } #vote-me .opt { cursor: pointer; } #vote-me .opt.on { box-shadow: inset 0 0 0 2px var(--blau); background: #1c2f52; }
#votes .opt span { font-size: 12px; z-index: 1; } #votes .opt small { display: block; font-size: 10px; color: #a9b3c7; font-weight: 700; }
#votes .opt em { font-style: normal; font-size: 12px; z-index: 1; } #votes .opt > i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,71,87,.28); transition: width .3s; }
#votes > div > small { font-size: 10px; color: #a9b3c7; }
#end .lists { text-align: left; } #end .lists h3 { margin: 0 0 4px; font-size: 12px; }
html[data-game-orientation=hoch] #votes { grid-template-columns: 1fr; gap: 6px; }
#end:not([hidden]) ~ #banner { opacity: 0 !important; }
#cmd-boss { position: absolute; left: 50%; top: calc(var(--safe-top) + 88px); transform: translateX(-50%); padding: 3px 12px; border-radius: 14px; background: rgba(60,45,0,.72); box-shadow: inset 0 0 0 1.5px #ffd84a; font-size: 12px; white-space: nowrap; color: #fff3c4; }
#cmd-boss small { color: #d8c88a; }
html:not([data-game-orientation=hoch]) #cmd-boss { left: calc(42cqw + 16px + (58cqw - 72px) / 2); }
html[data-game-orientation=hoch] #cmd-boss { top: calc(var(--safe-top) + 80px); font-size: 11px; }
html[data-game-orientation=hoch] #cv-viewport #cv-gifts[data-gift-layout=strip] { top: calc(var(--cv-cam-top, 0px) + var(--safe-top) + 108px); }

/* Politur 24.11.2026: Endkarte sanft einblenden */
#end .card { animation: endin .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes endin { 0% { opacity: 0; transform: translateY(16px) scale(.94); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #end .card { animation: none; } }
