/* V2 Strategy Edition — Leinwand / Live Screen */

.v2-hub.scanline::after,
.v2-screen.scanline::after {
  display: none;
}

.v2-screen {
  --screen-text: var(--text-primary);
  --screen-muted: var(--text-soft);
  color: var(--screen-text);
  position: relative;
  min-height: 100vh;
}

/* Berglandschaft hinter Kacheln & Text (nur Leinwand) */
.v2-screen-photo-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.v2-screen-photo-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #030508;
}

.v2-screen .v2-bg-void,
.v2-screen .v2-screen-photo-bg {
  background: transparent;
}

.v2-screen .v2-bg-brand-glow {
  background-image:
    linear-gradient(
      180deg,
      rgba(20, 42, 62, 0.18) 0%,
      rgba(20, 42, 62, 0.32) 50%,
      rgba(20, 42, 62, 0.48) 100%
    );
}

.v2-screen .v2-grid-pattern {
  display: none;
}

.v2-screen .v2-atmo-layer {
  opacity: 0.45;
}

.v2-screen .v2-shell-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 52px;
}

.v2-screen-toolbar {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.v2-screen-toolbar > * { pointer-events: auto; }

.v2-screen-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.v2-screen-alltime {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 101, 53, 0.45);
  background: rgba(20, 42, 62, 0.88);
  color: var(--gold);
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  font-family: inherit;
}

.v2-screen-alltime:hover {
  border-color: var(--brand-fire);
  color: #fff;
}

.v2-screen .lang-switch {
  background: rgba(15, 30, 46, 0.92);
  border-color: var(--border-main);
  backdrop-filter: blur(8px);
}

.v2-screen-hero {
  text-align: center;
  padding: 72px 24px 20px;
}

.v2-screen-hero .v2-brand-line,
.v2-screen-hero .v2-session-line,
.v2-screen-hero .v2-meta-line {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.v2-screen-hero .v2-brand-line {
  font-family: var(--ftf-font-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.v2-screen-hero .v2-brand-line .accent { color: var(--brand-fire); }

.v2-screen-hero .v2-session-line {
  font-size: clamp(13px, 1.4vw, 18px);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.v2-screen-hero .v2-meta-line {
  margin-top: 8px;
  font-size: clamp(14px, 1.5vw, 20px);
  color: var(--text-soft);
  font-weight: 600;
}

.v2-screen-stage {
  width: min(1500px, calc(100% - 40px));
  max-width: calc(100% - 40px);
  margin: 0 auto;
  box-sizing: border-box;
}

.v2-screen-banner {
  margin-bottom: clamp(12px, 1.5vw, 18px);
}

.v2-screen-message {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgba(240, 176, 64, 0.45);
  background: rgba(20, 42, 62, 0.82);
  backdrop-filter: blur(8px);
  text-align: center;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--screen-text);
  white-space: pre-line;
}

.v2-screen-poll,
.screen-live-poll,
.screen-research-block {
  box-sizing: border-box;
  padding: clamp(16px, 2vw, 24px) clamp(18px, 2.2vw, 28px);
  border-radius: 12px;
  border: 1px solid rgba(64, 208, 232, 0.42);
  background: rgba(8, 16, 28, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.screen-live-poll-kicker {
  margin: 0 0 10px;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyber-cyan) !important;
  text-align: center;
}

.screen-live-poll--closed .screen-live-poll-kicker {
  color: var(--text-soft) !important;
}

.screen-live-poll-question {
  font-family: var(--ftf-font-display);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  margin-bottom: 14px;
  color: var(--screen-text, var(--text-primary));
}

.v2-screen-program h2 {
  margin: 0 0 16px;
  font-family: var(--ftf-font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--screen-text);
}

.v2-screen-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.v2-screen-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  background: rgba(20, 42, 62, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--spiel-rgb), 0.28);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  padding: 0;
  text-align: left;
}

.v2-screen-card.running {
  border-color: rgba(var(--spiel-rgb), 0.65);
  box-shadow:
    0 0 0 1px rgba(var(--spiel-rgb), 0.35),
    0 12px 40px rgba(var(--spiel-rgb), 0.22);
  transform: translateY(-2px);
}

.v2-screen-card.focus {
  outline: 2px solid var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 12px 40px rgba(240, 176, 64, 0.15);
}

.v2-screen-card-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 20px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--spiel-main) 20%,
    var(--spiel-main) 80%,
    transparent 100%
  );
  opacity: 0.75;
}

.v2-screen-card.running .v2-screen-card-top {
  opacity: 1;
  box-shadow: 0 0 15px var(--spiel-main);
}

.v2-screen-card-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: var(--spiel-main);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.75;
}

.v2-screen-card-body {
  display: flex;
  gap: 12px;
  padding: 20px 18px 10px;
  flex: 1;
}

.v2-screen-card-copy { flex: 1; min-width: 0; }

.v2-screen-card-live {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: clamp(9px, 0.9vw, 11px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(40, 168, 80, 0.2);
  color: #50d878;
  margin-bottom: 8px;
}

.v2-screen-card.promo {
  opacity: 0.88;
  border-color: rgba(212, 160, 23, 0.4);
}

.v2-screen-card-promo {
  display: inline-block;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8c45a;
  margin-bottom: 6px;
}

.v2-screen-card-wait {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: clamp(9px, 0.9vw, 11px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(58, 112, 144, 0.2);
  color: var(--text-soft);
  margin-bottom: 8px;
}

.v2-screen-card h3 {
  margin: 0 0 10px;
  font-family: var(--ftf-font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.2;
}

.v2-screen-card-divider {
  width: 40px;
  height: 1px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--spiel-main) 45%, transparent);
}

.v2-screen-card .desc {
  margin: 0;
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.45;
  color: var(--text-soft);
  font-weight: 500;
}

.v2-screen-card-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(var(--spiel-rgb), 0.28),
    rgba(8, 16, 24, 0.95)
  );
  border: 1px solid rgba(var(--spiel-rgb), 0.45);
  box-shadow:
    0 0 0 1px rgba(var(--spiel-rgb), 0.12),
    0 0 24px rgba(var(--spiel-rgb), 0.35);
  opacity: 0.95;
}

.v2-screen-card.running .v2-screen-card-icon {
  box-shadow:
    0 0 0 1px rgba(var(--spiel-rgb), 0.2),
    0 0 32px rgba(var(--spiel-rgb), 0.55);
}

.v2-screen-card-icon .v2-game-badge {
  box-shadow: 0 0 14px rgba(var(--spiel-rgb), 0.5);
}

.v2-screen-card-foot {
  padding: 0 18px 16px;
  margin-top: auto;
}

.v2-screen-card-foot .pill {
  font-size: clamp(11px, 1vw, 13px);
  padding: 5px 10px;
  font-weight: 800;
  color: color-mix(in srgb, var(--spiel-light) 90%, #fff);
  border-color: color-mix(in srgb, var(--spiel-main) 40%, transparent);
  background: color-mix(in srgb, var(--spiel-main) 14%, transparent);
}

.v2-screen-leaderboards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.v2-screen-lb-panel {
  background: rgba(20, 42, 62, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(30, 58, 90, 0.5);
  border-radius: 12px;
  padding: clamp(14px, 1.5vw, 20px);
}

.v2-screen-lb-panel h2 {
  margin: 0 0 14px;
  font-family: var(--ftf-font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--screen-text);
}

.v2-screen-lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(15, 30, 46, 0.55);
}

.v2-screen-lb-row:last-child { margin-bottom: 0; }

.v2-screen-lb-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.v2-screen-lb-rank {
  width: clamp(28px, 2.5vw, 36px);
  height: clamp(28px, 2.5vw, 36px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 800;
  color: var(--bg-void);
  flex-shrink: 0;
}

.v2-screen-lb-rank--1 { background: var(--gold); }
.v2-screen-lb-rank--2 { background: #92a1a7; }
.v2-screen-lb-rank--n { background: #995a40; }

.v2-screen-lb-name {
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 800;
  color: var(--screen-text);
  line-height: 1.2;
}

.v2-screen-lb-sub {
  font-size: clamp(13px, 1.15vw, 16px);
  color: var(--screen-muted);
  margin-top: 3px;
}

.v2-screen-lb-score {
  font-family: var(--ftf-font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.v2-screen-empty {
  padding: 14px;
  border-radius: var(--ftf-radius-sm);
  border: 1px dashed rgba(30, 58, 90, 0.6);
  color: var(--text-muted);
  font-size: clamp(14px, 1.2vw, 16px);
}

.v2-screen-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 48px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: rgba(20, 42, 62, 0.78);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(30, 58, 90, 0.5);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.v2-screen-ticker .ticker-item {
  color: var(--text-muted);
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 300;
}

.v2-screen-ticker .ticker-sep { color: var(--border-main); }

.v2-alltime-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.v2-alltime-panel h2,
.v2-alltime-panel .alltime-hint { color: var(--screen-text); }

.v2-alltime-panel .alltime-hint { color: var(--text-soft); }

.v2-alltime-panel .rank.current {
  border-color: rgba(255, 101, 53, 0.55) !important;
  background: rgba(255, 101, 53, 0.12) !important;
}

#presentationLayer,
#gameScreenLayer { background: var(--bg-void); }

#presentationFrame,
#gameScreenFrame { background: var(--bg-void); }

body.fullscreen-mode .v2-screen-toolbar,
body.fullscreen-mode .v2-screen-hero,
body.game-screen-mode .v2-screen-toolbar,
body.game-screen-mode .v2-screen-hero { display: none; }

body.fullscreen-mode .v2-shell-inner,
body.game-screen-mode .v2-shell-inner { padding-bottom: 0; }

#mgeResearchBtn.mge-research--screen {
  top: 14px;
  right: 14px;
  border-radius: 999px;
  border-color: var(--border-main);
  background: rgba(15, 30, 46, 0.92);
  color: var(--text-primary);
  font-size: 11px;
  padding: 8px 14px;
}

@media (max-width: 950px) {
  .v2-screen-leaderboards { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .v2-screen-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .v2-screen-toolbar-right { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-screen.scanline::after { display: none; }
}


/* V2 Leinwand — Live-Poll, Overlays, Präsentation (aus live-screen.html) */
.live-poll-bars {
  display: grid;
  gap: 10px;
}

.live-poll-bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 1.2fr) 2fr auto;
  gap: 10px;
  align-items: center;
}

.live-poll-bar-label {
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--screen-text, var(--text-primary));
}

.live-poll-bar-track {
  height: clamp(18px, 2vw, 26px);
  border-radius: var(--ftf-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  border: 1px solid rgba(64, 208, 232, 0.28);
}

.live-poll-bar-fill {
  height: 100%;
  min-width: 0;
  border-radius: var(--ftf-radius-pill);
  background: linear-gradient(90deg, var(--brand-fire), var(--good));
  transition: width 0.35s ease;
}

.live-poll-bar-meta {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 800;
  color: var(--text-soft);
  white-space: nowrap;
}

.screen-live-poll-foot {
  text-align: center;
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--text-soft);
  margin-top: 10px;
  font-weight: 700;
}

.screen-live-poll-hint {
  text-align: center;
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 800;
  color: var(--cyber-cyan);
  margin: 12px 0 0;
  line-height: 1.35;
}

.screen-live-poll--closed .screen-live-poll-hint {
  display: none;
}
    .v2-screen-now-room.ticker{
      width:min(1500px,calc(100% - 40px));max-width:calc(100% - 40px);
      margin:0 auto 14px;padding:12px 18px;border-radius:12px;
      border:1px solid rgba(64,208,232,.45);background:rgba(20,42,62,.78);
      backdrop-filter:blur(8px);overflow:hidden;text-align:left
    }
    .v2-screen-now-room .ticker-marquee{
      overflow:hidden;width:100%;line-height:1.4
    }
    .v2-screen-now-room .ticker-track{
      display:flex!important;flex-wrap:nowrap!important;
      width:200%!important;max-width:none!important;
      animation:ticker-scroll 300s linear infinite!important
    }
    .v2-screen-now-room .ticker-set{
      display:flex;flex:0 0 50%;width:50%;flex-shrink:0;
      padding-right:0!important;box-sizing:border-box
    }
    .v2-screen-now-room .ticker-item{
      flex:0 0 33.333%;width:33.333%;max-width:33.333%;
      box-sizing:border-box;padding:0 10px;text-align:center;
      color:var(--text-primary);font-weight:800;
      font-size:clamp(16px,1.6vw,22px);white-space:nowrap;
      overflow:hidden;text-overflow:ellipsis
    }
    @media (prefers-reduced-motion:reduce){
      .v2-screen-now-room.ticker--live .ticker-track{
        width:200%!important;flex-wrap:nowrap!important
      }
    }
    .v2-screen-now-room .ticker-sep{display:none}
    .screen-research-q{font-size:clamp(15px,1.4vw,20px);font-weight:800;margin-bottom:8px;line-height:1.35;color:var(--text-primary)}
    .screen-research-a{font-size:clamp(13px,1.15vw,16px);line-height:1.5;color:var(--text-soft)}
    @media(max-width:700px){.live-poll-bar-row{grid-template-columns:1fr;gap:4px}}
    #presentationLayer{display:none;position:fixed;inset:0;z-index:50}
    #presentationLayer.visible{display:block}
    #presentationFrame{width:100%;height:100%;border:none}
    #gameScreenLayer{display:none;position:fixed;inset:0;z-index:45}
    #gameScreenLayer.visible{display:block}
    #gameScreenFrame{width:100%;height:100%;border:none}
    body.fullscreen-mode .screen-chrome{display:none!important}
    body.fullscreen-mode .v2-shell-inner{padding:0;min-height:100vh}
    body.fullscreen-mode #content{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
    .alltime-overlay{position:fixed;inset:0;z-index:800;display:grid;place-items:center;padding:16px;background:rgba(20,42,62,.88);backdrop-filter:blur(6px)}
    .alltime-overlay.hidden{display:none}
    .alltime-panel{width:min(980px,calc(100% - 24px));max-height:calc(100vh - 32px);overflow:auto;padding:18px 20px;border-radius:16px}
    .alltime-panel h2{margin:0 0 6px;font-size:clamp(22px,3vw,32px)}
    .alltime-panel .alltime-hint{font-size:clamp(14px,1.3vw,17px);margin:0 0 14px;line-height:1.45}
    .alltime-panel .rank .name{font-size:clamp(16px,1.4vw,20px)}
    .alltime-panel .rank .small{font-size:clamp(13px,1.15vw,16px);color:var(--text-soft)}
    .alltime-panel .rank .points{font-size:clamp(22px,2vw,30px)}
    .alltime-today{margin-bottom:14px;padding:10px 14px;border-radius:12px;border:1px solid rgba(255,101,53,.35);background:rgba(255,101,53,.1);font-size:13px;line-height:1.5;color:var(--text-primary)}
    .alltime-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
    .alltime-col h3{margin:0 0 8px;font-size:14px;color:var(--text-primary)}
    @media(max-width:760px){.alltime-grid{grid-template-columns:1fr}}
    .alltime-close{margin-top:14px}
    .v2-screen-ticker .ticker-track{animation:ticker-scroll 300s linear infinite!important}
    @keyframes ticker-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
    @media (prefers-reduced-motion:reduce){.v2-screen-ticker .ticker-track{animation:ticker-scroll 900s linear infinite!important}}

body.screen-alltime-mode .v2-screen-hero,
body.screen-alltime-mode #content,
body.screen-alltime-mode .v2-screen-ticker,
body.screen-alltime-mode #presentationLayer,
body.screen-alltime-mode #gameScreenLayer {
  visibility: hidden;
  pointer-events: none;
}
.screen-media-overlay{position:fixed;inset:0;z-index:880;padding:0;background:#000;opacity:1;transition:opacity .85s ease}
.screen-media-overlay.hidden{display:none}
body.screen-media-end-sequence .screen-media-overlay{opacity:0;pointer-events:none}
body.screen-media-end-sequence.screen-map-visible .v2-screen-photo-layer{
  opacity:0!important;
  transition:opacity .85s ease .18s;
}
body.screen-media-end-sequence.screen-media-end-sequence--hub-in.screen-map-visible .v2-screen-photo-layer{
  opacity:1!important;
}
.screen-media-panel{position:relative;width:100%;height:100%;min-height:100dvh;display:flex;align-items:center;justify-content:center}
.screen-media-vimeo{
  pointer-events:none;
  opacity:1;
  visibility:visible;
}
body.screen-media-audio-ready .screen-media-vimeo{pointer-events:auto}
.screen-media-unmute{
  position:fixed;left:50%;bottom:max(28px,4vh);transform:translateX(-50%);z-index:900;
  padding:16px 28px;border:2px solid rgba(255,200,80,.85);border-radius:999px;
  background:rgba(8,24,40,.92);color:#fff;font-size:clamp(18px,2.4vw,28px);font-weight:800;
  cursor:pointer;box-shadow:0 8px 32px rgba(0,0,0,.55);font-family:inherit;
  animation:screen-unmute-pulse 2s ease-in-out infinite;
}
.v2-screen #screenMediaUnmute{display:none!important}
.screen-media-unmute.hidden{display:none}
.screen-media-unmute:disabled{opacity:.7;cursor:wait}
.screen-media-unmute:hover,.screen-media-unmute:focus{
  background:rgba(20,48,72,.98);outline:3px solid rgba(255,220,120,.6);outline-offset:3px;
}
@keyframes screen-unmute-pulse{
  0%,100%{box-shadow:0 8px 32px rgba(0,0,0,.55)}
  50%{box-shadow:0 8px 40px rgba(255,180,60,.45)}
}
.screen-media-label{display:none}
.screen-media-video,.screen-media-image,.screen-media-vimeo{width:100vw;height:100vh;max-width:100%;max-height:100%;object-fit:contain;border-radius:0;background:#000;box-shadow:none;border:0}
.screen-media-video.hidden,.screen-media-image.hidden,.screen-media-vimeo.hidden{display:none}
body.screen-media-mode .v2-screen-hero,
body.screen-media-mode #content,
body.screen-media-mode .v2-screen-ticker,
body.screen-media-mode #presentationLayer,
body.screen-media-mode #gameScreenLayer,
body.screen-media-mode #allTimeOverlay,
body.screen-media-mode .v2-shell-inner,
body.screen-media-mode #screenGlobalBanners,
body.screen-media-mode #welcomeVideoOverlay,
body.screen-media-mode #welcomeJourneyBackdrop {
  visibility:hidden!important;
  pointer-events:none!important;
}
body.screen-media-mode #screenMediaOverlay {
  visibility:visible!important;
  pointer-events:auto!important;
  display:block!important;
}
body.screen-media-mode .v2-screen-photo-layer {
  opacity:0!important;
}

body.screen-alltime-mode #allTimeOverlay {
  visibility: visible;
  pointer-events: auto;
}

/* Keine Schaltflächen mehr auf der Leinwand (nur Moderator-Dashboard) */
.v2-screen #mgeResearchBtn,
.v2-screen .lang-switch,
.v2-screen .v2-screen-toolbar {
  display: none !important;
}

/* Wellenanimation — Leinwand Startbild (v2-screen-photo-layer) */
@keyframes ocean-wave-slow {
  from { background-position: 0 0; }
  to   { background-position: -800px 0; }
}
@keyframes ocean-wave-mid {
  from { background-position: 0 0; }
  to   { background-position: -600px 0; }
}

.v2-screen-photo-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='100'%3E%3Cpath d='M0,18 C133,10 267,26 400,18 C533,10 667,26 800,18' fill='none' stroke='white' stroke-width='2' stroke-opacity='0.32'/%3E%3Cpath d='M0,36 C133,27 267,45 400,36 C533,27 667,45 800,36' fill='none' stroke='white' stroke-width='2.5' stroke-opacity='0.38'/%3E%3Cpath d='M0,54 C133,44 267,64 400,54 C533,44 667,64 800,54' fill='none' stroke='white' stroke-width='2' stroke-opacity='0.3'/%3E%3Cpath d='M0,70 C133,62 267,78 400,70 C533,62 667,78 800,70' fill='none' stroke='white' stroke-width='1.5' stroke-opacity='0.25'/%3E%3Cpath d='M0,84 C133,76 267,92 400,84 C533,76 667,92 800,84' fill='none' stroke='white' stroke-width='1.5' stroke-opacity='0.2'/%3E%3C/svg%3E");
  background-size: 800px 100%;
  background-repeat: repeat-x;
  opacity: 0.75;
  animation: ocean-wave-slow 18s linear infinite;
}

.v2-screen-photo-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='100'%3E%3Cpath d='M0,25 C100,17 200,33 300,25 C400,17 500,33 600,25' fill='none' stroke='white' stroke-width='1.5' stroke-opacity='0.28'/%3E%3Cpath d='M0,44 C100,36 200,52 300,44 C400,36 500,52 600,44' fill='none' stroke='white' stroke-width='2' stroke-opacity='0.32'/%3E%3Cpath d='M0,62 C100,54 200,70 300,62 C400,54 500,70 600,62' fill='none' stroke='white' stroke-width='1.5' stroke-opacity='0.26'/%3E%3Cpath d='M0,78 C100,70 200,86 300,78 C400,70 500,86 600,78' fill='none' stroke='white' stroke-width='1.5' stroke-opacity='0.22'/%3E%3C/svg%3E");
  background-size: 600px 100%;
  background-repeat: repeat-x;
  opacity: 0.65;
  animation: ocean-wave-mid 12s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .v2-screen-photo-layer::before,
  .v2-screen-photo-layer::after { animation: none; }
}

body.screen-research-mode .v2-screen-hero,
body.screen-research-mode #content,
body.screen-research-mode .v2-screen-ticker,
body.screen-research-mode #presentationLayer,
body.screen-research-mode #gameScreenLayer,
body.screen-research-mode #allTimeOverlay {
  visibility: hidden;
  pointer-events: none;
}
body.screen-research-mode #mgeResearchOverlay {
  z-index: 850;
  display: flex !important;
  padding: clamp(12px, 2vw, 28px);
  background: rgba(20, 42, 62, 0.94);
}
body.screen-research-mode #mgeResearchOverlay.hidden {
  display: flex !important;
}
body.screen-research-mode #mgeResearchOverlay .mge-research-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: min(94vh, 960px);
}
body.screen-research-mode #mgeResearchOverlay .mge-research-thread {
  max-height: min(58vh, 640px);
}
body.screen-research-mode #mgeResearchClose {
  display: none;
}

/* Leinwand — Level-Zwischenüberschriften im Programm */
.v2-mod-level-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 14px 0 8px;
  padding: 8px 12px;
  border-radius: var(--ftf-radius-sm);
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
}
.v2-mod-level-head span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4a853;
}
.v2-mod-level-head strong {
  font-size: 15px;
  color: #f0ebe3;
}
.v2-mod-level-head em {
  font-size: 12px;
  color: #8fa8b8;
  font-style: normal;
  width: 100%;
}

/* Globale Banner über Spiel-iFrame (Ansage, Live-Umfrage, …) */
.screen-global-banners {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 860;
  pointer-events: none;
  max-height: 42vh;
  overflow: auto;
  padding-bottom: 8px;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.72) 0%, rgba(4, 10, 18, 0.35) 70%, transparent 100%);
}

.screen-global-banners.hidden {
  display: none;
}

.screen-global-banners .v2-screen-banner {
  margin: 0;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Live-Umfrage über Spiel-iFrame: maximaler Kontrast zum Hintergrundbild */
.screen-global-banners .screen-live-poll {
  width: min(1100px, calc(100% - 32px));
  margin: 12px auto;
  border-radius: var(--ftf-radius-md);
  border-color: rgba(64, 208, 232, 0.55);
  background: rgba(4, 10, 18, 0.97);
  backdrop-filter: blur(16px);
  box-shadow:
    var(--ftf-shadow-panel),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.screen-global-banners .screen-live-poll-question,
.screen-global-banners .live-poll-bar-label {
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.screen-global-banners .live-poll-bar-track {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.screen-global-banners .screen-live-poll-foot,
.screen-global-banners .live-poll-bar-meta {
  color: var(--text-soft);
}

