/* Motti Sonar – OBS-Overlay (Browser-Quelle 1920×1080, transparenter Hintergrund) */
:root {
  --ov-bg: rgba(12, 17, 23, .86);
  --ov-line: rgba(255, 255, 255, .09);
  --ov-text: #eef3f6;
  --ov-muted: #9aa9b4;
  --ov-accent: #2ee6a6;
  --ov-win: #44b300;
  --ov-loss: #e5312b;
  --ov-draw: #f2f4f7;                 /* Unentschieden: weiß */
  /* Stufenfarben wie wows-numbers.com */
  --lv-bad: #fe0e00; --lv-below_average: #fe7903; --lv-average: #ffc71f; --lv-good: #44b300;
  --lv-very_good: #318000; --lv-great: #02c9b3; --lv-unicum: #d042f3; --lv-super_unicum: #a00dc5;
}
* { box-sizing: border-box; }
html, body.overlay { margin: 0; background: transparent; overflow: hidden; }
body.overlay { width: 100vw; height: 100vh; font: 16px/1.35 "Segoe UI", system-ui, Roboto, sans-serif; color: var(--ov-text);
  -webkit-font-smoothing: antialiased; }

.ov-root { position: absolute; display: flex; flex-direction: column; gap: 12px; padding: 28px; max-width: 760px; }
.ov-root.pos-bottom-left { left: 0; bottom: 0; align-items: flex-start; }
.ov-root.pos-bottom-right { right: 0; bottom: 0; align-items: flex-end; }
.ov-root.pos-top-left { left: 0; top: 0; align-items: flex-start; flex-direction: column-reverse; }
.ov-root.pos-top-right { right: 0; top: 0; align-items: flex-end; flex-direction: column-reverse; }
/* Frei platziert: jedes Teil sitzt an seiner gespeicherten Stelle (Abstand zur nächsten Kante in %) */
.ov-root.pos-free { left: 0; top: 0; right: 0; bottom: 0; padding: 0; max-width: none; display: block; }
.pos-free > section { position: absolute; width: max-content; max-width: 760px; }
.pos-free > .ov-record { position: absolute; }
body.ov-preview-mode .ov-root > section { cursor: grab; touch-action: none; }
body.ov-preview-mode .ov-root > section.ov-dragging { cursor: grabbing; outline: 2px dashed var(--ov-accent); outline-offset: 4px;
  transition: none; }
/* Hilfslinien beim Ziehen (nur Vorschau, wird dort stark verkleinert → Linien etwas dicker) */
/* Bildmitte in der Vorschau: dünne Linien + Kreuz (liegt unter den Teilen, fängt keine Klicks) */
.ov-center { position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 0; }
.ov-center i { position: absolute; display: block; }
.ov-center-v { top: 0; bottom: 0; left: 50%; margin-left: -1.5px; border-left: 3px dashed rgba(0, 229, 255, .55); }
.ov-center-h { left: 0; right: 0; top: 50%; margin-top: -1.5px; border-top: 3px dashed rgba(0, 229, 255, .55); }
.ov-center-x { left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 3px solid rgba(0, 229, 255, .8);
  border-radius: 50%; box-shadow: 0 0 10px rgba(0, 229, 255, .6); }
.ov-guides { position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 50; }
.ov-guide { position: absolute; }
.ov-guide-v { top: 0; bottom: 0; width: 0; margin-left: -1.5px; }
.ov-guide-h { left: 0; right: 0; height: 0; margin-top: -1.5px; }
.ov-guide-mid.ov-guide-v { border-left: 3px dashed rgba(255, 255, 255, .28); }
.ov-guide-mid.ov-guide-h { border-top: 3px dashed rgba(255, 255, 255, .28); }
.ov-guide-hit.ov-guide-v { border-left: 3px solid #ff3df0; box-shadow: 0 0 10px #ff3df0; }
.ov-guide-hit.ov-guide-h { border-top: 3px solid #ff3df0; box-shadow: 0 0 10px #ff3df0; }

/* Ein-/Ausblenden */
.ov-bar, .ov-card, .ov-announce, .ov-record { transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .25, 1.15); }
.ov-hidden { opacity: 0; transform: translateX(-40px); pointer-events: none; }
.pos-bottom-right .ov-hidden, .pos-top-right .ov-hidden { transform: translateX(40px); }
.ov-off { display: none !important; }
.ov-dim { opacity: .38; }                         /* nur Vorschau: Teil erscheint erst mit der Gefechts-Karte */
/* Hintergrund-Deckkraft pro Teil: Kasten (Hintergrund + Schatten aus --pbg/--psh) wandert in ::before und wird
   dort durchsichtig – die Schrift bleibt voll sichtbar. Ohne --pbg gilt der Theme-Hintergrund --ov-bg. */
.ov-bgfade { position: relative; isolation: isolate; background: none !important; }
.ov-bgfade:not(.ov-flash) { box-shadow: none !important; }
.ov-bgfade::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; border-radius: inherit;
  background: var(--pbg, var(--ov-bg)); box-shadow: var(--psh, 0 8px 28px rgba(0, 0, 0, .35)); opacity: var(--ov-bgop, 1); }

/* Session-Leiste */
.ov-bar { display: flex; align-items: stretch; background: var(--ov-bg); border: 1px solid var(--ov-line); border-radius: 10px;
  overflow: hidden; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
.ov-b-tag { display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--ov-muted); background: rgba(255, 255, 255, .04); border-right: 1px solid var(--ov-line); }
.ov-dot-live { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: ov-live 1.6s infinite; }
.ov-b-item { display: flex; flex-direction: column; justify-content: center; padding: 8px 16px; border-right: 1px solid var(--ov-line); min-width: 84px; }
.ov-b-item strong { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-b-item small { font-size: 11px; color: var(--ov-muted); text-transform: uppercase; letter-spacing: .08em; }
.ov-b-dots { display: flex; align-items: center; gap: 5px; padding: 0 14px; }
.ov-b-dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--ov-win); }
.ov-b-dots i.l { background: var(--ov-loss); }
.ov-b-dots i.d { background: var(--ov-draw); }
.ov-b-dots i.new { animation: ov-pop .6s ease-out; }
/* Nach einem Gefecht: Rand + Sonar-Ring in der Ergebnisfarbe, kurzes Größer-Werden, Lichtstreifen, Zahlen hüpfen.
   `scale` statt transform – transform gehört dem Ein-/Ausblenden, beides läuft so gleichzeitig. */
.ov-bar { position: relative; --flash: var(--ov-win);
  transition: border-color .6s ease, opacity .45s ease, transform .55s cubic-bezier(.2, .9, .25, 1.15); }
.ov-b-tag { transition: color .6s ease; }
.ov-bar.loss { --flash: var(--ov-loss); }
.ov-bar.draw { --flash: var(--ov-draw); }
.ov-bar.multi { --flash: var(--lv-average); }
.ov-bar.ov-flash { animation: ov-flash-ring 1.1s ease-out 2, ov-flash-pop .7s cubic-bezier(.2, 1.5, .4, 1);
  border-color: var(--flash); }
.ov-bar.ov-flash::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); animation: ov-flash-shine 1.1s ease .15s; }
.ov-bar.ov-flash .ov-b-item strong { animation: ov-flash-num .6s ease-out .1s; }
.ov-bar.ov-flash .ov-b-tag { color: var(--flash); }
@keyframes ov-flash-ring { 0% { box-shadow: 0 0 0 0 var(--flash), 0 0 18px var(--flash); }
  100% { box-shadow: 0 0 0 16px transparent, 0 0 0 transparent; } }
@keyframes ov-flash-pop { 0% { scale: 1; } 35% { scale: 1.05; } 100% { scale: 1; } }
@keyframes ov-flash-shine { to { left: 120%; } }
@keyframes ov-flash-num { 0% { scale: 1; } 40% { scale: 1.22; } 100% { scale: 1; } }
.ov-b-item strong { transform-origin: left center; }

/* Account-Karte */
.ov-card { background: var(--ov-bg); border: 1px solid var(--ov-line); border-radius: 10px; padding: 12px 16px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35); min-width: 380px; }
.ov-c-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.ov-c-nick { font-size: 18px; font-weight: 700; }
.ov-c-clan { font-size: 14px; color: var(--ov-muted); font-weight: 600; }
.ov-c-grid { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 22px; }
.ov-c-grid div { display: flex; flex-direction: column; }
.ov-c-grid span { font-size: 11px; color: var(--ov-muted); text-transform: uppercase; letter-spacing: .08em; }
.ov-c-grid strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.ov-c-grid small { font-size: 11px; font-weight: 600; }
.ov-c-src { margin-top: 6px; font-size: 10px; color: var(--ov-muted); opacity: .7; letter-spacing: .02em; }

/* Gefechts-Einblendung */
.ov-announce { display: flex; align-items: center; gap: 16px; background: var(--ov-bg); border: 1px solid var(--ov-line);
  border-left: 6px solid var(--ov-win); border-radius: 10px; padding: 14px 22px 14px 16px; --psh: 0 10px 34px rgba(0, 0, 0, .45);
  box-shadow: var(--psh); }
.ov-announce.loss { border-left-color: var(--ov-loss); }
.ov-announce.draw { border-left-color: var(--ov-draw); }
.draw .ov-a-result { color: var(--ov-draw); }
.draw .ov-ping b { background: var(--ov-draw); box-shadow: 0 0 14px var(--ov-draw); }
.draw .ov-ping i { border-color: var(--ov-draw); }
.ov-a-top { display: flex; align-items: baseline; gap: 12px; }
.ov-a-result { font-size: 28px; font-weight: 800; letter-spacing: .06em; color: var(--ov-win); text-transform: uppercase; }
.loss .ov-a-result { color: var(--ov-loss); }
.ov-a-mode { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--ov-muted); text-transform: uppercase; }
.ov-a-ship { font-size: 19px; font-weight: 600; margin: 1px 0 6px; }
.ov-a-stats { display: flex; gap: 18px; font-size: 15px; color: #cfd9df; }
.ov-a-stats strong { color: var(--ov-text); font-size: 17px; }
.ov-a-star:empty { display: none; }
.ov-a-star.kept { color: #ffd54a; font-weight: 700; }
.ov-a-star.lost { color: #ff8a80; }
.ov-ping { position: relative; width: 54px; height: 54px; flex: none; }
.ov-ping b { position: absolute; inset: 19px; border-radius: 50%; background: var(--ov-win); box-shadow: 0 0 14px var(--ov-win); }
.ov-ping i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ov-win); opacity: 0; }
.ov-announce.show .ov-ping i { animation: ov-ping 1.8s ease-out 2; }
.ov-announce.show .ov-ping i + i { animation-delay: .6s; }
.loss .ov-ping b { background: var(--ov-loss); box-shadow: 0 0 14px var(--ov-loss); }
.loss .ov-ping i { border-color: var(--ov-loss); }
.multi .ov-a-result { color: var(--lv-average); }
.ov-announce.multi { border-left-color: var(--lv-average); }

/* Rekord-Alarm: Gold für Gesamt-Rekord, Eisblau für Schiffs-Rekord */
.ov-record { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 24px 14px 18px; border-radius: 12px;
  overflow: hidden; color: #fff4d2; --pbg: linear-gradient(135deg, rgba(70, 48, 6, .94), rgba(26, 18, 3, .94)); background: var(--pbg);
  border: 2px solid #ffc71f; --psh: 0 0 28px rgba(255, 199, 31, .5), 0 10px 34px rgba(0, 0, 0, .45); box-shadow: var(--psh); }
.ov-record.ov-bgfade { overflow: visible; }      /* Leuchten des Kastens nicht abschneiden */
.ov-record.ship { color: #e6f9ff; --pbg: linear-gradient(135deg, rgba(8, 42, 56, .94), rgba(3, 18, 26, .94)); background: var(--pbg);
  border-color: #8fe3ff; --psh: 0 0 22px rgba(120, 220, 255, .4), 0 10px 34px rgba(0, 0, 0, .45); box-shadow: var(--psh); }
.ov-r-icon { font-size: 44px; line-height: 1; filter: drop-shadow(0 0 10px rgba(255, 199, 31, .8)); }
.ov-record.ship .ov-r-icon { font-size: 34px; filter: drop-shadow(0 0 8px rgba(120, 220, 255, .8)); }
.ov-r-title { font-size: 27px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #ffd54a;
  text-shadow: 0 0 14px rgba(255, 199, 31, .7); }
.ov-record.ship .ov-r-title { font-size: 20px; color: #8fe3ff; text-shadow: 0 0 10px rgba(120, 220, 255, .6); }
/* Tipp-Champions am Stream-Ende: gleiche Karte in Violett */
.ov-record.tips { color: #f3e8ff; --pbg: linear-gradient(135deg, rgba(52, 22, 84, .94), rgba(20, 8, 34, .94)); background: var(--pbg);
  border-color: #c58bff; --psh: 0 0 24px rgba(197, 139, 255, .45), 0 10px 34px rgba(0, 0, 0, .45); box-shadow: var(--psh); }
.ov-record.tips .ov-r-icon { filter: drop-shadow(0 0 10px rgba(197, 139, 255, .8)); }
.ov-record.tips .ov-r-title { color: #d9b8ff; text-shadow: 0 0 12px rgba(197, 139, 255, .7); }
/* Karma-Popup: Lob grün, Meldung rot */
.ov-record.karma.up { color: #e8ffe0; --pbg: linear-gradient(135deg, rgba(18, 60, 8, .94), rgba(6, 24, 3, .94)); background: var(--pbg);
  border-color: #6bdc3a; --psh: 0 0 24px rgba(107, 220, 58, .45), 0 10px 34px rgba(0, 0, 0, .45); box-shadow: var(--psh); }
.ov-record.karma.down { color: #ffe4e2; --pbg: linear-gradient(135deg, rgba(76, 12, 10, .94), rgba(30, 4, 4, .94)); background: var(--pbg);
  border-color: #ff5a4f; --psh: 0 0 24px rgba(255, 90, 79, .45), 0 10px 34px rgba(0, 0, 0, .45); box-shadow: var(--psh); }
.ov-record.karma .ov-r-icon { font-size: 36px; filter: none; }
.ov-record.karma.up .ov-r-title { color: #8ff06a; text-shadow: 0 0 12px rgba(107, 220, 58, .7); }
.ov-record.karma.down .ov-r-title { color: #ff8a80; text-shadow: 0 0 12px rgba(255, 90, 79, .7); }
.ov-record.karma .ov-r-lines small { margin-left: 0; }
.ov-r-lines div { margin-top: 2px; }
.ov-r-lines strong { font-size: 22px; font-weight: 800; }
.ov-r-lines small { margin-left: 8px; font-size: 14px; opacity: .75; }
.ov-record.show { animation: ov-rec-pop .7s cubic-bezier(.2, 1.4, .4, 1); }
.ov-record.show::after { content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); animation: ov-rec-shine 1.6s ease .4s 2; }
.ov-none { display: none !important; }
@keyframes ov-rec-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ov-rec-shine { to { left: 130%; } }

/* Stufenfarben (übliche Community-Skala, u. a. von wows-numbers.com) */
[data-lv="bad"] { color: var(--lv-bad) !important; } [data-lv="below_average"] { color: var(--lv-below_average) !important; }
[data-lv="average"] { color: var(--lv-average) !important; } [data-lv="good"] { color: var(--lv-good) !important; }
[data-lv="very_good"] { color: var(--lv-very_good) !important; } [data-lv="great"] { color: var(--lv-great) !important; }
[data-lv="unicum"] { color: var(--lv-unicum) !important; } [data-lv="super_unicum"] { color: var(--lv-super_unicum) !important; }
[data-lv="very_good"] { text-shadow: 0 0 1px rgba(255, 255, 255, .25); }

/* Design „Sonar“: dunkelgrün mit Leuchten */
.theme-sonar { --ov-bg: rgba(5, 22, 24, .86); --ov-line: rgba(46, 230, 166, .28); --ov-muted: #8fc7b6; }
.theme-sonar .ov-bar, .theme-sonar .ov-card, .theme-sonar .ov-announce { --psh: 0 0 22px rgba(46, 230, 166, .18), 0 8px 28px rgba(0, 0, 0, .4);
  box-shadow: var(--psh); }
.theme-sonar .ov-b-tag { color: var(--ov-accent); }

/* Design „Marine“: Marineblau mit Gold, wie der Hafen im Spiel */
.theme-steel { --ov-bg: linear-gradient(180deg, rgba(20, 36, 62, .93), rgba(10, 21, 40, .93)); --ov-line: rgba(214, 178, 96, .45);
  --ov-muted: #cdb784; --ov-accent: #e6c26e; }
.theme-steel .ov-bar, .theme-steel .ov-card, .theme-steel .ov-announce { background: var(--ov-bg); border-radius: 4px;
  --psh: inset 0 1px 0 rgba(255, 230, 170, .18), 0 8px 26px rgba(0, 0, 0, .5); box-shadow: var(--psh); }
.theme-steel .ov-card { border-top: 2px solid var(--ov-accent); }
.theme-steel .ov-b-tag { color: var(--ov-accent); background: rgba(214, 178, 96, .08); }
.theme-steel .ov-c-nick, .theme-steel .ov-a-ship { letter-spacing: .04em; text-transform: uppercase; }

/* Design „Neon“: Pink und Cyan mit Leuchtrand */
.theme-neon { --ov-bg: rgba(16, 6, 30, .86); --ov-line: rgba(255, 64, 214, .55); --ov-muted: #c9a8e8; --ov-accent: #22e5ff; }
.theme-neon .ov-bar, .theme-neon .ov-card, .theme-neon .ov-announce {
  --psh: 0 0 10px rgba(255, 64, 214, .55), 0 0 26px rgba(34, 229, 255, .25), inset 0 0 12px rgba(255, 64, 214, .15); box-shadow: var(--psh); }
.theme-neon .ov-b-tag { color: #ff40d6; text-shadow: 0 0 8px #ff40d6; }
.theme-neon .ov-b-item strong, .theme-neon .ov-c-grid strong, .theme-neon .ov-c-nick { text-shadow: 0 0 10px rgba(34, 229, 255, .6); }
.theme-neon .ov-a-result { text-shadow: 0 0 14px currentColor; }

/* Design „Glas“: milchig-durchsichtig */
.theme-glass { --ov-bg: rgba(255, 255, 255, .14); --ov-line: rgba(255, 255, 255, .32); --ov-muted: #e6eef3; }
.theme-glass .ov-bar, .theme-glass .ov-card, .theme-glass .ov-announce { backdrop-filter: blur(12px) saturate(140%);
  border-radius: 14px; --psh: 0 8px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .35); box-shadow: var(--psh); }
.theme-glass .ov-bgfade { backdrop-filter: none; }   /* durchsichtig gestellt: kein Milchglas-Kasten mehr dahinter */
.theme-glass .ov-bar, .theme-glass .ov-card, .theme-glass .ov-announce, .theme-glass .ov-b-tag { text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.theme-glass .ov-b-tag { background: rgba(255, 255, 255, .1); color: #fff; }

/* Design „Minimal“: keine Kästen, nur Schrift mit Schatten */
.theme-minimal .ov-bar, .theme-minimal .ov-card, .theme-minimal .ov-announce { background: none; border-color: transparent;
  box-shadow: none; --pbg: none; --psh: none; }
.theme-minimal .ov-announce { border-left: 4px solid var(--ov-win); padding-left: 12px; }
.theme-minimal .ov-announce.loss { border-left-color: var(--ov-loss); }
.theme-minimal .ov-announce.draw { border-left-color: var(--ov-draw); }
.theme-minimal .ov-b-tag, .theme-minimal .ov-b-item { background: none; border: 0; }
.theme-minimal * { text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .8); }
.theme-minimal .ov-b-dots i { box-shadow: 0 0 3px #000; }

@keyframes ov-ping { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes ov-live { 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } }
/* Karma in der Leiste: Lob grün, Meldungen rot; bei Änderung kurz aufleuchten */
.pos-free > .ov-bar, .ov-root > .ov-bar { max-width: none; width: max-content; }   /* mit Karma breiter: nicht umbrechen */
.ov-b-item strong, .ov-b-item small { white-space: nowrap; }
.ov-b-karma[hidden] { display: none; }
.ov-b-karma strong.up, .ov-b-karma .p { color: var(--ov-win); }
.ov-b-karma strong.down, .ov-b-karma .m { color: var(--ov-loss); }
.ov-b-karma b { font-weight: inherit; }
.ov-b-karma.ov-k-new strong { animation: ov-k-glow 1.6s ease-out; }
@keyframes ov-k-glow { 0% { text-shadow: 0 0 14px currentColor; scale: 1.25; } 100% { text-shadow: none; scale: 1; } }
@keyframes ov-pop { 0% { transform: scale(2.2); } 100% { transform: scale(1); } }
/* Spielerliste (Sonar Companion) – Farben der Werte über data-lv wie überall */
.ov-players { min-width: 0; padding: 10px 14px 12px; }
.pos-free > .ov-players, .ov-root > .ov-players { max-width: none; width: max-content; }   /* breite Tabelle: nicht auf 760 px begrenzen */
.ov-p-team th.ship { text-align: left; }
.ov-b-other { display: none; align-items: center; padding: 8px 20px 8px 16px; min-height: 45px; color: var(--ov-muted);
  font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.ov-bar.ov-b-is-other .ov-b-other { display: flex; }
.ov-bar.ov-b-is-other .ov-b-item, .ov-bar.ov-b-is-other .ov-b-dots { display: none !important; }
.ov-p-head { font-size: 13px; color: var(--ov-muted); font-weight: 600; margin-bottom: 6px; letter-spacing: .02em; }
.ov-p-teams { display: flex; gap: 18px; align-items: flex-start; }
/* beide Teams sichtbar: senkrechte Trennlinie zwischen Verbündeten und Gegnern */
.ov-p-teams.both { gap: 0; }
.ov-p-teams.both .ov-p-team.enemy { position: relative; margin-left: 16px; padding-left: 18px; }
.ov-p-teams.both .ov-p-team.enemy::before { content: ""; position: absolute; left: 0; top: 0; bottom: 2px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--ov-win, #4ade80), var(--ov-loss, #f87171)); opacity: .8; }
.ov-p-team table { border-collapse: collapse; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ov-p-team caption { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ov-win, #4ade80); padding-bottom: 3px; }
.ov-p-team.enemy caption { color: var(--ov-loss, #f87171); }
.ov-p-team th { font-size: 10px; font-weight: 700; color: var(--ov-muted); text-align: right; padding: 0 0 3px 10px; text-transform: uppercase; }
.ov-p-team th:first-child { text-align: left; padding-left: 0; }
.ov-p-team td { padding: 2px 0 2px 10px; text-align: right; border-top: 1px solid var(--ov-line); }
.ov-p-team td:first-child { text-align: left; padding-left: 0; max-width: 190px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ov-p-team td.ship { text-align: left; color: var(--ov-muted); }
.ov-p-team th.rk, .ov-p-team td.rk { text-align: center; }
.ov-p-team td.rk { color: var(--ov-muted); }
.ov-p-team td.rk b { font-weight: 800; color: var(--ov-text, #fff); }
.ov-p-team td.rk b[data-league="1"] { color: #ffd54a; } .ov-p-team td.rk b[data-league="2"] { color: #d6dde6; }
.ov-p-team td.rk b[data-league="3"] { color: #e0a36b; }
.ov-p-team .rk-stars { margin-left: 3px; font-size: 11px; color: #ffd54a; }
.ov-p-team .rk-stars.none { color: var(--ov-muted); opacity: .6; }
.ov-p-team .clan { color: var(--ov-muted); font-weight: 600; margin-right: 4px; }
.ov-p-team tr.self td:first-child { color: var(--ov-accent); }
.ov-p-team td.hidden { color: var(--ov-muted); font-style: italic; text-align: left; }
.ov-players.show { animation: ov-rec-pop .6s cubic-bezier(.2, 1.4, .4, 1); }
/* Einblenden Zeile für Zeile: Rahmen nur sanft einblenden, die Zeilen machen die Show (Verzögerung pro Zeile aus overlay.js) */
.ov-players.show.pa-duel, .ov-players.show.pa-cascade, .ov-players.show.pa-radar { animation: pa-fade .35s ease-out; }
.ov-p-teams { position: relative; }
.pa-duel .ov-p-team { overflow: hidden; }   /* hereinfliegende Zeilen nicht über den Kartenrand */
.pa-duel .ov-p-team tr.pa-row { animation: pa-in-l .6s cubic-bezier(.2, 1.1, .35, 1) both; }
.pa-duel .ov-p-team.enemy tr.pa-row { animation-name: pa-in-r; }
.pa-cascade tr.pa-row { animation: pa-drop .5s cubic-bezier(.2, 1.3, .4, 1) both; transform-origin: top; }
.pa-radar tr.pa-row { animation: pa-ping .6s ease-out both; }
.ov-players tr.pa-row.self td:first-child { animation: pa-self 1.6s ease-out both; animation-delay: inherit; }
.ov-p-extra.pa-final { display: inline-block; animation: pa-final .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.ov-p-scan { position: absolute; left: -6px; right: -6px; top: var(--scan-from); height: 2px; pointer-events: none; z-index: 2;
  background: var(--ov-accent, #2ee59d); box-shadow: 0 0 10px var(--ov-accent, #2ee59d), 0 0 22px var(--ov-accent, #2ee59d);
  animation: pa-scan 3s linear both; }
.ov-p-scan::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 26px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--ov-accent, #2ee59d) 28%, transparent), transparent); }
@keyframes pa-fade { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pa-in-l { 0% { opacity: 0; transform: translateX(-70px); } 60% { opacity: 1; transform: translateX(6px); background: transparent; }
  72% { background: rgba(255, 255, 255, .16); } 100% { transform: none; background: transparent; } }
@keyframes pa-in-r { 0% { opacity: 0; transform: translateX(70px); } 60% { opacity: 1; transform: translateX(-6px); background: transparent; }
  72% { background: rgba(255, 255, 255, .16); } 100% { transform: none; background: transparent; } }
@keyframes pa-drop { 0% { opacity: 0; transform: translateY(-16px) scaleY(.6); } 100% { opacity: 1; transform: none; } }
@keyframes pa-ping { 0% { opacity: 0; } 25% { opacity: 1; background: color-mix(in srgb, var(--ov-accent, #2ee59d) 24%, transparent);
  text-shadow: 0 0 10px var(--ov-accent, #2ee59d); } 100% { opacity: 1; background: transparent; text-shadow: none; } }
@keyframes pa-self { 0%, 30% { text-shadow: none; } 50% { text-shadow: 0 0 14px var(--ov-accent, #2ee59d), 0 0 4px var(--ov-accent, #2ee59d); }
  100% { text-shadow: none; } }
@keyframes pa-final { 0% { opacity: 0; transform: scale(.5); } 100% { opacity: 1; transform: none; } }
@keyframes pa-scan { 0% { top: var(--scan-from); opacity: 1; } 94% { opacity: 1; } 100% { top: var(--scan-to); opacity: 0; } }
.ov-p-extra { margin-left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--ov-text, #fff); }
.ov-p-extra.up { color: var(--ov-win, #4ade80); }
.ov-p-extra.down { color: var(--ov-loss, #f87171); }

/* Extras: Ranked-Fortschritt (Stahlblau), Serien-Alarm (Feuer / Regen), Karten-Hinweis (Türkis), Schiffs-Roulette (Pink) */
.ov-record.ov-rank { color: #e4ecff; --pbg: linear-gradient(135deg, rgba(20, 34, 70, .94), rgba(8, 14, 32, .94)); background: var(--pbg);
  border-color: #7fa7ff; --psh: 0 0 22px rgba(127, 167, 255, .4), 0 10px 34px rgba(0, 0, 0, .45); box-shadow: var(--psh); }
.ov-rank .ov-r-icon { font-size: 38px; filter: drop-shadow(0 0 8px rgba(127, 167, 255, .8)); }
.ov-rank .ov-r-title { font-size: 24px; color: #b9cdff; text-shadow: 0 0 10px rgba(127, 167, 255, .6); }
.ov-rk-league { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ov-muted); }
.ov-rk-league[data-league="1"] { color: #ffd54a; } .ov-rk-league[data-league="2"] { color: #d6dde6; }
.ov-rk-league[data-league="3"] { color: #e0a36b; }
.ov-rk-stars { font-size: 26px; letter-spacing: 4px; line-height: 1.1; }
.ov-rk-stars i { font-style: normal; color: #ffd54a; text-shadow: 0 0 10px rgba(255, 213, 74, .7); }
.ov-rk-stars i.empty { color: rgba(255, 255, 255, .25); text-shadow: none; }
.ov-rk-stars i.new { display: inline-block; animation: ov-pop .6s cubic-bezier(.2, 1.4, .4, 1); }
.ov-rk-change { margin-left: 10px; font-size: 15px; letter-spacing: .06em; }
.ov-rank.up .ov-rk-change { color: #8ff06a; text-shadow: 0 0 10px rgba(107, 220, 58, .8); }
.ov-rank.down .ov-rk-change { color: #ff8a80; }
.ov-rank.up.show { animation: ov-rec-pop .7s cubic-bezier(.2, 1.4, .4, 1), ov-rank-glow 2.4s ease .3s 2; }
@keyframes ov-rank-glow { 50% { box-shadow: 0 0 46px rgba(143, 240, 106, .75), 0 10px 34px rgba(0, 0, 0, .45); border-color: #8ff06a; } }
.ov-record.streak { color: #fff0e0; --pbg: linear-gradient(135deg, rgba(92, 30, 4, .94), rgba(36, 10, 2, .94)); background: var(--pbg);
  border-color: #ff8a1f; --psh: 0 0 28px rgba(255, 138, 31, .55), 0 10px 34px rgba(0, 0, 0, .45); box-shadow: var(--psh); }
.ov-record.streak .ov-r-icon { filter: drop-shadow(0 0 12px rgba(255, 138, 31, .9)); }
.ov-record.streak .ov-r-title { color: #ffb15c; text-shadow: 0 0 14px rgba(255, 138, 31, .8); }
.ov-record.streak.show .ov-r-icon { animation: ov-flame .5s ease-in-out 6 alternate; }
@keyframes ov-flame { from { transform: scale(1) rotate(-6deg); } to { transform: scale(1.18) rotate(6deg); } }
.ov-record.streak.cold { color: #e2f0ff; --pbg: linear-gradient(135deg, rgba(22, 38, 60, .94), rgba(8, 14, 24, .94)); background: var(--pbg);
  border-color: #7fb8ff; --psh: 0 0 22px rgba(127, 184, 255, .4), 0 10px 34px rgba(0, 0, 0, .45); box-shadow: var(--psh); }
.ov-record.streak.cold .ov-r-icon { filter: drop-shadow(0 0 10px rgba(127, 184, 255, .8)); }
.ov-record.streak.cold .ov-r-title { color: #a9d0ff; text-shadow: 0 0 12px rgba(127, 184, 255, .7); }
.ov-record.streak .ov-r-lines small, .ov-record.map .ov-r-lines small { margin-left: 0; }
.ov-record.map { color: #e0fffa; --pbg: linear-gradient(135deg, rgba(6, 58, 54, .94), rgba(2, 22, 20, .94)); background: var(--pbg);
  border-color: #2ee6c8; --psh: 0 0 22px rgba(46, 230, 200, .4), 0 10px 34px rgba(0, 0, 0, .45); box-shadow: var(--psh); }
.ov-record.map .ov-r-icon { font-size: 38px; filter: drop-shadow(0 0 8px rgba(46, 230, 200, .8)); }
.ov-record.map .ov-r-title { font-size: 24px; color: #8ff5e4; text-shadow: 0 0 10px rgba(46, 230, 200, .6); }
.ov-m-tag { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ov-muted); }
.ov-record.map .ov-r-lines strong { margin-right: 8px; }
.ov-record.roulette { color: #ffe8f8; --pbg: linear-gradient(135deg, rgba(76, 8, 60, .94), rgba(28, 3, 24, .94)); background: var(--pbg);
  border-color: #ff4fd8; --psh: 0 0 26px rgba(255, 79, 216, .5), 0 10px 34px rgba(0, 0, 0, .45); box-shadow: var(--psh); min-width: 360px; }
.ov-record.roulette .ov-r-icon { filter: drop-shadow(0 0 10px rgba(255, 79, 216, .9)); }
.ov-record.roulette .ov-r-title { font-size: 20px; color: #ff9be9; text-shadow: 0 0 10px rgba(255, 79, 216, .7); }
.ov-ro-user { margin-left: 10px; font-size: 13px; letter-spacing: .04em; text-transform: none; color: #f3c6ea; text-shadow: none; }
.ov-ro-reel { margin: 6px 0 2px; padding: 4px 12px; border-radius: 8px; background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 79, 216, .35); overflow: hidden; }
.ov-ro-name { font-size: 28px; font-weight: 900; white-space: nowrap; }
.ov-ro-name.tick { animation: ov-ro-tick .09s linear; }
.ov-ro-name.done { color: #fff; text-shadow: 0 0 16px rgba(255, 79, 216, .9); animation: ov-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ov-ro-tick { from { transform: translateY(-60%); opacity: .3; } to { transform: translateY(0); opacity: 1; } }

/* Highlight-Anzeige (Sonar Companion schneidet gerade) – oben in der Mitte, unabhängig von der Position der Leiste */
.ov-hl { position: fixed; top: 22px; left: 50%; --tx: -50%; --ty: -16px; transform: translateX(var(--tx)); display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 16px; border-radius: 999px; background: var(--ov-bg, rgba(5, 22, 24, .88)); color: #e9f4f7;
  border: 1px solid var(--ov-line, rgba(46, 230, 166, .35)); box-shadow: 0 0 22px rgba(46, 230, 166, .18), 0 8px 28px rgba(0, 0, 0, .45);
  font: 600 17px/1.2 "Segoe UI", system-ui, sans-serif; transition: opacity .45s ease, transform .5s cubic-bezier(.2, .9, .25, 1.15); z-index: 50; }
.ov-hl.ov-hidden { opacity: 0; transform: translate(var(--tx), var(--ty)); }
.ov-hl.pos-top-left { left: 22px; --tx: 0; }
.ov-hl.pos-top-right { left: auto; right: 22px; --tx: 0; }
.ov-hl.pos-bottom-center { top: auto; bottom: 22px; --ty: 16px; }
.ov-hl.pos-bottom-left { top: auto; bottom: 22px; left: 22px; --tx: 0; --ty: 16px; }
.ov-hl.pos-bottom-right { top: auto; bottom: 22px; left: auto; right: 22px; --tx: 0; --ty: 16px; }
.ov-hl.pos-free { --tx: 0; }                         /* Stelle kommt aus cfg.places.hl (overlay.js) */
.ov-preview-mode .ov-hl { cursor: grab; }
.ov-hl.ov-dragging { cursor: grabbing; transition: none; outline: 2px dashed rgba(46, 230, 166, .7); outline-offset: 4px; }
.ov-hl-icon { font-size: 22px; animation: ov-hl-pulse 1.6s ease-in-out infinite; }
.ov-hl-body { display: flex; flex-direction: column; }
.ov-hl-body small { color: var(--ov-muted, #8fc7b6); font-weight: 500; font-size: 14px; }
.ov-hl-ring { width: 30px; height: 30px; flex: none; }
.ov-hl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ov-hl-ring circle { fill: none; stroke-width: 4; }
.ov-hl-ring .bg { stroke: rgba(255, 255, 255, .12); }
.ov-hl-ring .fg { stroke: var(--ov-accent, #2ee6a6); stroke-dasharray: 94.25; stroke-dashoffset: 94.25; stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
.ov-hl.state-waiting .ov-hl-ring, .ov-hl.state-ready .ov-hl-ring { display: none; }
.ov-hl.state-waiting .ov-hl-icon { animation: none; }
@keyframes ov-hl-pulse { 50% { transform: scale(1.15); } }

/* Ziel-Karte: WR/PR des aufgeschalteten Gegners (Farben über data-lv wie in der Spielerliste) */
.ov-record.target { gap: 14px; padding: 10px 20px 10px 14px; color: #ffe9e6;
  --pbg: linear-gradient(135deg, rgba(58, 12, 14, .94), rgba(18, 5, 7, .94)); background: var(--pbg);
  border-color: #ff5a4f; --psh: 0 0 22px rgba(255, 90, 79, .45), 0 10px 30px rgba(0, 0, 0, .45); box-shadow: var(--psh); }
.ov-record.target .ov-r-icon { font-size: 30px; filter: drop-shadow(0 0 8px rgba(255, 90, 79, .8)); }
.ov-record.target.no-icon { padding-left: 18px; }
.ov-tg-vals { display: flex; align-items: center; gap: 22px; }
.ov-tg-v { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.ov-tg-v small { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .75; }
.ov-tg-v strong { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ov-tg-hidden { font-size: 18px; font-weight: 700; opacity: .85; }
.ov-tg-rows { display: flex; flex-direction: column; gap: 4px; }
.ov-record.target.is-hidden .ov-tg-rows { display: none; }
.ov-tg-mode { min-width: 74px; font-size: 12px; font-weight: 800; letter-spacing: .08em; opacity: .8; }
.ov-record.target.swap { animation: ov-tg-swap .35s ease-out; }
@keyframes ov-tg-swap { from { opacity: .25; transform: scale(.94); } to { opacity: 1; transform: none; } }
.ov-record.target .ov-r-icon[hidden] { display: none; }
