/* =========================================================
   EHRENCHECKER — OFFIZIELLES DESIGN SYSTEM (Master Blueprint)
   ========================================================= */
:root {
    --navy: #081228;
    --card: #1B1E49;
    --cyan: #00f0ff;
    --purple: #ff007f;
    --headline: #F5F7FF;
    --subtext: #B9C3E6;
    --gold: #FFD700;
    --silver: #C7D2E0;
    --bronze: #E2984B;
    --green: #22C55E;
    --red: #EF4444;
    --glass-bg: rgba(27, 30, 73, 0.4);

    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0; }

/* Scrollbars durchgaengig im Ehrenchecker-Look statt Browser-Standard --
   greift ueberall (Matrix-Auswahl, Modals, Admin-Liste, Rangliste, etc.). */
* { scrollbar-width: thin; scrollbar-color: var(--cyan) rgba(8,18,40,0.4); }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: rgba(8,18,40,0.4); }
*::-webkit-scrollbar-thumb { background: var(--cyan); border: 1px solid rgba(0,240,255,0.3); box-shadow: 0 0 6px rgba(0,240,255,0.4); }
*::-webkit-scrollbar-thumb:hover { box-shadow: 0 0 12px var(--cyan); }

body {
    background-color: var(--navy);
    color: var(--headline);
    font-family: var(--font-body);
    min-height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* NEU: Stapelt die Elemente von oben nach unten */
    justify-content: flex-start; /* NEU: Beginnt oben am Bildschirmrand */
    align-items: center;
}

/* =========================================================
   BACKGROUND FX
   ========================================================= */
.bg-fx-layer {
    position: fixed; inset: 0; z-index: -1;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,0,127,0.18), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0,240,255,0.16), transparent 40%),
        var(--navy);
    background-size: cover; background-position: center;
    opacity: 1; pointer-events: none;
    transform: scale(1);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), filter 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ehren-header-full {
  width: 100vw;
  height: 50px;
  opacity: 0;
  transition: opacity 1s ease;
  /* NEU: Nicht mehr transparent, sondern abgedunkelt mit leichtem Blur für perfekten Kontrast */
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px; 
  box-sizing: border-box;
  margin: 0;
  position: relative; /* WICHTIG: Kein absolute mehr, verhindert Überlappung */
  z-index: 50; 
  flex-shrink: 0;
  overflow: visible;
}
.ehren-header-full.revealed { opacity: 1; }

/* Logo-Wrapper: absolut zentriert, unabhängig von der Breite links/rechts */
.header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    pointer-events: none;
}

/* Neue Logo-Klasse */
.header-logo {
    height: 30px; /* Füllt den Header fast komplett aus, vertikal zentriert */
    width: auto;
    max-width: none;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0,240,255,0.45));
}

/* Neue Navigations-Buttons */
.header-nav {
    display: flex;
    gap: 12px;
}

.header-btn {
    background: transparent;
    border: 1px solid rgba(0,240,255,0.3);
    color: var(--cyan);
    font-family: var(--font-head);
    font-size: 0.75rem;
    padding: 6px 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .header-btn:hover {
        background: rgba(0,240,255,0.15);
        border-color: var(--cyan);
        box-shadow: 0 0 12px rgba(0,240,255,0.4);
        transform: translateY(-2px);
    }
}

.bg-fx-layer.matrix-active { transform: scale(1.06); filter: brightness(1.1); }

/* Terminal-Pattern Micro-Overlay (aus Regelwerk Abschnitt 5) */
.app-container::before {
    content: '';
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(0deg, rgba(245,247,255,0.025) 0px, rgba(245,247,255,0.025) 1px, transparent 1px, transparent 3px);
    pointer-events: none;
    z-index: 1;

}


/* Cinema Focus Overlay */
.cinema-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0);
    z-index: -2; pointer-events: none;
    transition: background 0.6s ease;
}
.cinema-overlay.active { background: rgba(0,0,0,0.7); z-index: 3; }

/* Rote Rand-Vignette bei Timer-Panik (<3s) -- liegt wie .cinema-overlay HINTER dem
   Spielecontainer (z-index 3 vs. 10), kann also nie ins Spielfeld hineinbluten. */
.timer-vignette {
    position: fixed; inset: 0; z-index: 3; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(239,68,68,0.5) 90%);
    opacity: 0; transition: opacity 0.3s ease;
}
.timer-vignette.active { opacity: 1; animation: vignettePulse 1s ease-in-out infinite; }
@keyframes vignettePulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.app-container {
    width: 100%; max-width: 900px; 
    height: calc(100vh - 50px); /* Zieht exakt nur noch die 50px des Headers ab */
    display: flex; flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(0,240,255, 0.3);
    border-top: none; /* Verhindert eine doppelte Linie zum Header */
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    position: relative;
    z-index: 10; 
    margin-top: 0; /* Lücke nach oben ist jetzt exakt geschlossen */
    opacity: 0; /* Unsichtbar bis zum Reveal -- vorher war hier gar keine Regel, deshalb sah man die Box schon vorher */
}

/* Screen-Shake fuer seltene, grosse Momente (grosser Streak bricht, perfekte Runde) --
   bewusst nicht bei jeder falschen Antwort, sonst nutzt sich der Effekt schnell ab. */
.app-container.screen-shake { animation: screenShake 0.35s ease; }
@keyframes screenShake {
    0%, 100% { transform: translate3d(0,0,0); }
    20% { transform: translate3d(-6px, 3px, 0); }
    40% { transform: translate3d(5px, -3px, 0); }
    60% { transform: translate3d(-4px, 2px, 0); }
    80% { transform: translate3d(3px, -2px, 0); }
}

.static-zone { flex: 0 0 auto; padding: 25px 40px 0 40px; position: relative; z-index: 2; }
.view-container { flex: 1 1 auto; display: flex; justify-content: center; align-items: flex-start; padding: clamp(16px, 4vh, 40px) 40px; overflow-y: auto; position: relative; z-index: 2; }
.center-view { width: 100%; max-width: 1100px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; animation: cyberFadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.center-view .grid-2-col { width: 100%; }

.section-divider { width: 70%; height: 2px; background: linear-gradient(to right, transparent, var(--cyan), transparent); box-shadow: 0 0 10px rgba(0,240,255,0.5); margin: 15px 0 40px 0; border: none; }
.divider { height: 1px; background: rgba(0,240,255,0.2); width: 100%; margin: 0; }

/* =========================================================
   HEADER
   ========================================================= */
.header-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1.4fr; align-items: center; min-height: 85px; padding-bottom: 15px; }
.header-left-zone { display: grid; grid-template-columns: auto 1fr; align-items: center; width: 100%; gap: 12px; }
.header-center-zone { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.header-right-zone { display: grid; grid-template-columns: auto auto 1fr; align-items: center; width: 100%; gap: 8px; justify-content: end; }

.main-logo { max-width: 220px; height: auto; margin-bottom: 5px; filter: drop-shadow(0 0 10px rgba(0,240,255,0.4)); }
.logo-text-fallback { font-family: var(--font-head); font-size: 1.4rem; font-weight: 900; letter-spacing: 2px; color: var(--headline); }
.logo-text-fallback span { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }

/* Session score in header */
.session-score-box { text-align: right; font-family: var(--font-head); }
.session-score-box .label { font-size: 0.6rem; color: var(--subtext); letter-spacing: 1px; }
.session-score-box .value { font-size: 1.1rem; color: var(--gold); text-shadow: 0 0 8px rgba(255,215,0,0.6); }

/* =========================================================
   CO-HOST BAR (Original-Styling)
   ========================================================= */
.co-host-bar { width: 100%; display: flex; flex-direction: column; align-items: center; background: rgba(8,18,40,0.5); border-bottom: 1px solid rgba(0,240,255,0.15); padding: 10px 40px; z-index: 10; position: relative; cursor: pointer; }


/* Nachricht schwebt als Overlay UNTER der Bar, verschiebt nie das restliche Layout */
.co-host-bar { width: 100%; display: flex; justify-content: center; background: rgba(8,18,40,0.5); border-bottom: 1px solid rgba(0,240,255,0.15); padding: 10px 40px; z-index: 10; position: relative; cursor: pointer; }
.co-host-terminal { display: flex; align-items: center; justify-content: flex-start; width: 100%; max-width: 1100px; gap: 14px; }
.co-host-text-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.host-name { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; text-shadow: 0 0 8px currentColor; flex-shrink: 0; font-size: 0.85rem; letter-spacing: 1.5px; }
.status-dot { display: none; }
.typewriter-text {
    font-style: italic; overflow-wrap: break-word; word-break: normal;
    font-family: var(--font-body); font-size: 0.85rem; line-height: 1.4;
    color: rgba(245,247,255,0.9); display: block;
    height: 3.8rem; overflow-y: auto; /* fest auf 3 Zeilen (Desktop) -- kein eigener Hintergrund-Kasten, kein Ueberlaufen ins Spielfeld */
}
.host-avatar {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 2px solid var(--cyan); box-shadow: 0 0 12px rgba(0,240,255,0.45);
    transition: opacity 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease, margin 0.2s ease;
}
.host-avatar.avatar-bounce { animation: avatarBounce 0.42s ease; }

.confetti-piece {
    position: fixed; left: 50%; top: 30%; width: 8px; height: 8px; z-index: 600; pointer-events: none;
    animation: confettiFly 1.1s ease-out forwards;
}
@keyframes confettiFly { 0% { transform: translate(0,0) rotate(0deg); opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); opacity: 0; } }
@keyframes avatarBounce { 0% { transform: scale(1); } 35% { transform: scale(1.15); } 65% { transform: scale(0.96); } 100% { transform: scale(1); } }
.host-avatar.hidden-avatar { opacity: 0; width: 0; margin-right: -14px; border-width: 0; }

.typing-dots { display: inline-flex; gap: 5px; align-items: center; height: 0.6em; }
.typing-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block;
    animation: typingBounce 1s ease-in-out infinite; box-shadow: 0 0 6px currentColor;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Ladebalken statt Hinweistext waehrend der Eddy/Roxy-Ansage -- kommuniziert "hier
   passiert was" ohne dass man jedes Mal einen Skip-Hinweis lesen muss. Ueberspringen
   per Antippen der Bar funktioniert weiterhin, nur eben nicht mehr extra beworben.
   Fuellstand + Prozentzahl sind ECHT (getippte Zeichen von Eddy+Roxy / Gesamtzeichen),
   keine Deko-Animation die nichts mit dem tatsaechlichen Tippfortschritt zu tun hat. */
.host-loading-bar { display: none; margin-top: 6px; width: 100%; max-width: 320px; align-items: center; gap: 8px; }
.host-loading-bar.show { display: flex; }
.host-loading-track { flex: 1; height: 3px; position: relative; overflow: hidden; background: rgba(245,247,255,0.08); }
.host-loading-fill {
    position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width 0.15s ease-out;
}
.host-loading-fill::after {
    content: ''; position: absolute; top: 50%; right: 0; width: 5px; height: 5px;
    transform: translate(50%, -50%); background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
    /* Derselbe "auf und ab" Puls-Effekt wie vorher am Skip-Hinweis -- nur jetzt als
       leuchtender Punkt an der Spitze des Ladebalkens statt an Text gebunden. */
    animation: pulse 1.1s ease-in-out infinite;
}
.host-loading-pct {
    font-family: var(--font-head); font-size: 0.55rem; color: var(--cyan); letter-spacing: 0.5px;
    min-width: 2.4em; text-align: right; opacity: 0.85; text-shadow: 0 0 6px rgba(0,240,255,0.4);
}

/* Login-Button: zeigt einen generischen Icon-Platzhalter, solange nur anonym eingeloggt
   ist, und wechselt zum echten Google-Profilbild, sobald das Konto verknuepft wurde. */
.auth-btn { position: relative; overflow: hidden; font-size: 0.85rem; }
.auth-btn.logged-in { background: transparent; box-shadow: 0 0 8px rgba(0,240,255,0.35); border: 2px solid var(--cyan); }
/* Login-Extra: Avatar-Rahmen nach hoechster je erreichter Ehren-Klasse -- dieselbe
   Farbsprache wie .honor-title.tierX auf dem Rundenende-Screen, damit sich das
   konsistent anfuehlt. Nur fuer eingeloggte Spieler sichtbar (siehe app.js). */
.auth-btn.tier1 { border-color: #8a93b0; box-shadow: 0 0 8px rgba(138,147,176,0.4); }
.auth-btn.tier2 { border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,240,255,0.5); }
.auth-btn.tier3 { border-color: var(--purple); box-shadow: 0 0 12px rgba(255,0,127,0.5); }
.auth-btn.tier4 { border-color: var(--gold); box-shadow: 0 0 14px rgba(255,215,0,0.55); }
.auth-btn.tier5 { border-color: var(--gold); animation: authTierPulse 2s ease-in-out infinite; }
@keyframes authTierPulse {
    0%, 100% { box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(255,215,0,0.55); }
    50% { box-shadow: 0 0 16px var(--gold), 0 0 32px rgba(255,215,0,0.8); }
}
.auth-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Creator/Streamer Badge */
.creator-badge {
    display: none;
    align-items: center; gap: 6px;
    font-family: var(--font-head); font-size: 0.65rem; letter-spacing: 1px;
    color: var(--purple); border: 1px solid var(--purple); padding: 4px 10px;
    text-shadow: 0 0 6px var(--purple); white-space: nowrap;
}
.creator-badge.active { display: flex; }
.creator-badge .dot { width: 6px; height: 6px; background: var(--purple); box-shadow: 0 0 6px var(--purple); animation: pulse 1.5s infinite; }

/* === SPONSOR & TYPOGRAPHY === */
.col-sponsor { font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.2; }
.col-sponsor .muted { color: #7080a8; }
.sponsor-content { margin-top: 2px; height: 18px; display: flex; align-items: center; }
.highlight-cyan { color: var(--cyan); font-weight: 700; text-shadow: 0 0 8px rgba(0,240,255,0.5); }
#sponsor-logo { max-height: 100%; max-width: 110px; object-fit: contain; }
.pink-glow, .purple-glow { color: var(--purple); text-shadow: 0 0 10px var(--purple); }
.cyan-glow { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }
.gold-glow { color: var(--gold); text-shadow: 0 0 12px var(--gold); }

.sponsor-status { margin-left: 10px; font-family: var(--font-head); font-size: 0.55rem; color: var(--cyan); letter-spacing: 1px; opacity: 0; text-shadow: 0 0 8px rgba(0,240,255,.7); }
.sponsor-status.active { opacity: 1; }
.hologram-logo { animation: hologramBoot 0.7s ease forwards; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-outline { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); padding: 6px 16px; font-family: var(--font-head); font-size: 0.7rem; cursor: pointer; text-transform: uppercase; transition: 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
    .btn-outline:hover { background: var(--cyan); color: var(--navy); box-shadow: 0 0 15px var(--cyan); }
}
.btn-outline.muted-state { opacity: 0.4; }
.header-icon-btn {
    width: 30px; height: 30px; padding: 0; display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; border-radius: 50%;
    background: var(--cyan); border: none; color: var(--navy);
    box-shadow: 0 0 8px rgba(0,240,255,0.35);
}
@media (hover: hover) and (pointer: fine) {
    .header-icon-btn:hover { background: var(--cyan); box-shadow: 0 0 16px var(--cyan); transform: scale(1.06); }
}

.btn-solid { background: linear-gradient(90deg, var(--purple), var(--cyan)); color: var(--headline); border: none; padding: 14px 20px; font-family: var(--font-head); font-size: 0.9rem; cursor: pointer; text-transform: uppercase; transition: 0.2s; width: 100%; letter-spacing: 1px; }
.btn-solid:active { transform: scale(0.97); }
.btn-solid.correct-state { background: var(--green) !important; }

.btn-secondary { background: transparent; border: 1px solid var(--purple); color: var(--purple); }

.btn-row { display: flex; gap: 12px; width: 100%; margin-top: 20px; }
.mt-10 { margin-top: 20px; }

/* Einheitlicher Shine-Sweep fuer ALLE Buttons -- derselbe Effekt wie auf den
   Modus-/Matrix-Kacheln (siehe .bento-tile::after), damit sich jede Aktion im
   Spiel wie aus einem Guss anfuehlt. */
.btn-solid, .btn-secondary, .btn-outline, .header-icon-btn, .lifeline-btn {
    position: relative; overflow: hidden;
}
.btn-solid::after, .btn-secondary::after, .btn-outline::after, .header-icon-btn::after, .lifeline-btn::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-25deg); transition: left 0.5s ease; pointer-events: none;
}
/* Hover-Effekte NUR fuer echte Zeigegeraete (Maus/Trackpad) -- auf Touch bleibt
   :hover sonst nach dem Tippen haengen, bis woanders hingetippt wird. */
@media (hover: hover) and (pointer: fine) {
    .btn-solid:hover { box-shadow: 0 0 20px var(--cyan); filter: brightness(1.1); transform: translateY(-2px); }
    .btn-secondary:hover { background: var(--purple); color: var(--headline); box-shadow: 0 0 15px var(--purple); transform: translateY(-2px); }
    .btn-solid:hover::after, .btn-secondary:hover::after, .btn-outline:hover::after,
    .header-icon-btn:hover::after, .lifeline-btn:hover:not(:disabled)::after {
        left: 130%;
    }
}

/* =========================================================
   SECTION TITLES
   ========================================================= */
.section-title { font-family: var(--font-head); color: var(--cyan); text-align: center; display: block; width: 100%; }

/* =========================================================
   BENTO GRID & TILES
   ========================================================= */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.bento-tile { background: rgba(8,18,40,0.75); border: 1px solid rgba(245,247,255,0.05); padding: 15px 20px; display: flex; align-items: center; gap: 15px; text-align: left; cursor: pointer; color: var(--headline); position: relative; overflow: hidden; width: 100%; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); font-family: var(--font-body); }

.matrix-tile { position: relative; overflow: hidden; }
.matrix-tile::before { content: ''; position: absolute; left: 0; top: -120%; width: 100%; height: 120%; background: linear-gradient(to bottom, transparent, rgba(0,240,255,0.18), rgba(0,240,255,0.45), rgba(0,240,255,0.18), transparent); opacity: 0; pointer-events: none; z-index: 10; }
.matrix-tile.scanning::before { opacity: 1; animation: matrixScan 0.8s ease-out forwards; }

.bento-tile::before { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 2px; background: transparent; transition: 0.3s ease; }
.bento-tile::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0,240,255,0.2), transparent); transform: skewX(-25deg); transition: left 0.5s ease; pointer-events: none; }

@media (hover: hover) and (pointer: fine) {
    .hover-cyan:hover { border-color: rgba(0,240,255,0.6); background: rgba(0,240,255,0.05); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,240,255,0.1); }
    .hover-cyan:hover::before { background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
    .hover-cyan:hover::after { left: 150%; }
    .hover-cyan:hover .icon-cyan svg { fill: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); transform: scale(1.1); }
}

.tile-icon svg { width: 32px; height: 32px; fill: var(--cyan); opacity: 0.7; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.tile-content { display: flex; flex-direction: column; gap: 3px; z-index: 2; }
.meta-tag { font-family: var(--font-head); font-size: 0.55rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 2px; }
.meta-tag.cyan { color: var(--cyan); }
.tile-question-count { display: block; font-family: var(--font-head); font-size: 0.65rem; color: var(--subtext); letter-spacing: 0.5px; margin-top: 4px; }

.creator-avatar-placeholder {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: var(--cyan); border: none; color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 900; font-size: 1.1rem;
    box-shadow: 0 0 8px rgba(0,240,255,0.35);
    transition: 0.2s ease;
}
.creator-tile.is-selected .creator-avatar-placeholder { box-shadow: 0 0 16px var(--cyan); transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) {
    .creator-tile:hover .creator-avatar-placeholder { box-shadow: 0 0 16px var(--cyan); transform: scale(1.06); }
}

/* Creator ohne Fragen: sichtbar deaktiviert statt gleichwertig neben den
   funktionierenden Kacheln zu stehen -- pointer-events:none blockt Klick UND Hover. */
.creator-tile.coming-soon {
    opacity: 0.4; filter: grayscale(0.8); cursor: not-allowed; pointer-events: none;
}
.creator-tile.coming-soon .tile-question-count { color: var(--subtext); font-style: italic; }

.mode-grid-label {
    font-family: var(--font-head); font-size: 0.7rem; color: var(--subtext);
    letter-spacing: 1.5px; text-align: center; margin: 4px 0 14px 0;
}

.greeting {
    font-family: var(--font-head); font-size: 0.85rem; color: var(--cyan);
    letter-spacing: 1px; text-align: center; margin-bottom: 8px; text-shadow: 0 0 8px rgba(0,240,255,0.4);
}
.greeting .greeting-name { color: var(--purple); text-shadow: 0 0 8px var(--purple); }

.session-momentum {
    font-family: var(--font-head); font-size: 0.75rem; color: var(--subtext);
    letter-spacing: 0.5px; text-align: center; margin-bottom: 18px;
}

.daily-banner {
    width: 100%; margin-bottom: 24px;
    background: linear-gradient(90deg, rgba(255,215,0,0.08), rgba(0,240,255,0.08));
    border: 1px solid var(--gold);
    padding: 14px 24px; cursor: pointer; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    transition: 0.2s ease; position: relative; overflow: hidden;
    animation: dailyGlowPulse 2.8s ease-in-out infinite;
}
.daily-banner::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.25), transparent);
    transform: skewX(-25deg); animation: dailyShimmer 3.6s ease-in-out infinite; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .daily-banner:hover { box-shadow: 0 0 26px rgba(255,215,0,0.4); transform: translateY(-2px); }
}
.daily-banner.done { animation: none; }
.daily-banner.done::after { display: none; }
@keyframes dailyGlowPulse { 0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.15); } 50% { box-shadow: 0 0 22px rgba(255,215,0,0.4); } }
@keyframes dailyShimmer { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.daily-banner-left { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 2; }
.daily-banner-tag { font-family: var(--font-head); color: var(--gold); font-size: 0.75rem; letter-spacing: 1.5px; text-shadow: 0 0 8px var(--gold); }
.daily-banner-date { font-family: var(--font-head); color: var(--subtext); font-size: 0.7rem; letter-spacing: 0.5px; }
.daily-banner-status { font-family: var(--font-body); color: var(--headline); font-size: 0.85rem; position: relative; z-index: 2; }
.daily-banner.done { border-color: var(--green); background: linear-gradient(90deg, rgba(34,197,94,0.2), rgba(34,197,94,0.08)); cursor: default; box-shadow: 0 0 18px rgba(34,197,94,0.3); }
@media (hover: hover) and (pointer: fine) {
    .daily-banner.done:hover { transform: none; box-shadow: 0 0 18px rgba(34,197,94,0.3); }
}
.daily-banner.done .daily-banner-tag { color: var(--green); text-shadow: 0 0 8px var(--green); }

.tile-content h4 { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 1px; }
.tile-content p { font-size: 0.8rem; color: var(--subtext); line-height: 1.3; }

.bento-tile.is-selected { border-color: rgba(0,240,255,0.85) !important; background: rgba(0,240,255,0.09) !important; transform: translateY(-2px) !important; box-shadow: 0 8px 25px rgba(0,0,0,0.5), inset 0 0 25px rgba(0,240,255,0.12), 0 0 18px rgba(0,240,255,0.18) !important; }
.bento-tile.is-selected::before { background: var(--cyan) !important; box-shadow: 0 0 20px var(--cyan) !important; }
.bento-tile.is-selected::after { left: 150% !important; transition: none !important; }
.bento-tile.is-selected .tile-icon svg { fill: var(--cyan) !important; filter: drop-shadow(0 0 10px var(--cyan)) !important; transform: scale(1.12) !important; opacity: 1 !important; }

/* =========================================================
   QUIZ SCREEN
   ========================================================= */
.quiz-header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; gap: 16px; }
.quiz-header-left { display: flex; justify-content: flex-start; }
.quiz-header-center { display: flex; justify-content: center; }
.quiz-header-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.round-score-box { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.round-score-label { font-family: var(--font-head); font-size: 0.5rem; color: var(--subtext); letter-spacing: 1px; }
.round-score-value { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--gold); text-shadow: 0 0 8px rgba(255,215,0,0.5); }
.quiz-divider { margin: 15px 0 clamp(14px, 3vh, 28px) 0; width: 100%; }
.progress-dots { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: 220px; }
.progress-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(245,247,255,0.15); border: 1px solid rgba(245,247,255,0.2); transition: all 0.25s ease; flex-shrink: 0; }
.progress-dot.current { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 1.2s infinite; }
.progress-dot.correct { background: var(--green); border-color: var(--green); }
.progress-dot.wrong { background: var(--red); border-color: var(--red); }
/* Meilenstein-Glow als eigenes Pseudo-Element statt eigener "animation"-Deklaration
   auf .progress-dot -- so kollidiert es nicht mit der laufenden .current-Pulsanimation
   (zwei "animation"-Properties auf demselben Element ueberschreiben sich sonst). */
.progress-dot { position: relative; }
.progress-dot.milestone-pulse::after {
    content: ''; position: absolute; inset: -7px; border-radius: 50%; pointer-events: none;
    animation: milestoneBurst 1s ease-out;
}
@keyframes milestoneBurst {
    0% { box-shadow: 0 0 0 rgba(255,215,0,0); transform: scale(0.6); opacity: 1; }
    50% { box-shadow: 0 0 14px 4px rgba(255,215,0,0.85); transform: scale(1.5); opacity: 1; }
    100% { box-shadow: 0 0 0 rgba(255,215,0,0); transform: scale(2); opacity: 0; }
}
.progress-dot.skipped { background: transparent; border-color: var(--subtext); }
.progress-dot.cliffhanger-dot { border-color: var(--gold); }
.progress-dot.cliffhanger-dot.correct, .progress-dot.cliffhanger-dot.wrong { background: transparent; border-color: var(--gold); box-shadow: 0 0 6px var(--gold); }

.tag-pill { font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 1px; padding: 5px 12px; border: 1px solid var(--cyan); color: var(--cyan); display: inline-flex; align-items: center; gap: 8px; }
.tag-pill.community { border-color: var(--purple); color: var(--purple); animation: pulse 2s infinite; }
.tag-pill.sponsored { border-color: var(--gold); color: var(--gold); }
.tag-pill.cliffhanger { border-color: var(--gold); color: var(--gold); text-shadow: 0 0 8px var(--gold); }
.tag-sponsor-logo { max-height: 16px; max-width: 70px; object-fit: contain; vertical-align: middle; }
.sponsor-placeholder-text { font-family: var(--font-body); font-size: 0.55rem; color: var(--subtext); font-style: italic; }
.tag-pill .sponsor-status { font-size: 0.5rem; opacity: 0; color: var(--cyan); transition: opacity 0.2s ease; }
.tag-pill .sponsor-status.active { opacity: 1; }
.question-progress { font-family: var(--font-head); font-size: 0.7rem; color: var(--subtext); letter-spacing: 1px; }

/* Timer Ring */
.timer-wrap { position: relative; width: 70px; height: 70px; flex-shrink: 0; }
.timer-wrap svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.timer-ring-bg { fill: none; stroke: rgba(245,247,255,0.1); stroke-width: 6; }
.timer-ring-fg { fill: none; stroke: var(--cyan); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 195; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke 0.3s ease; filter: drop-shadow(0 0 6px var(--cyan)); }
.timer-ring-fg.warning { stroke: var(--red); filter: drop-shadow(0 0 8px var(--red)); animation: ringPulse 0.6s infinite; }
.timer-number { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1.3rem; color: var(--headline); }
.timer-wrap.no-timer .timer-number::after { content: '∞'; }
.timer-wrap.no-timer .timer-number { font-size: 1.6rem; color: var(--purple); }
.timer-wrap.no-timer .timer-ring-fg { display: none; }

.streak-popup {
    position: fixed; top: 30%; left: 50%; transform: translate(-50%, -50%) scale(0.5);
    font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan), 0 0 40px rgba(0,240,255,0.6);
    opacity: 0; pointer-events: none; z-index: 500; letter-spacing: 2px; text-align: center;
}
.streak-popup.show { animation: speedsterPop 1.5s ease forwards; }
.streak-popup.tier3 { color: var(--gold); text-shadow: 0 0 20px var(--gold), 0 0 40px rgba(255,215,0,0.6); }

.question-text { font-family: var(--font-body); font-size: clamp(1.05rem, 2.6vh, 1.4rem); line-height: 1.4; text-align: center; margin-bottom: clamp(14px, 3vh, 30px); color: var(--headline); max-width: 700px; min-height: 2.4em; }
/* Zoom-Punch beim Fragenwechsel -- kommt kurz reingeschossen statt nur dazustehen, gibt Momentum */
.question-text.punch { animation: questionPunch 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes questionPunch { 0% { transform: scale(1.04); } 100% { transform: scale(1); } }

.answers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.8vh, 14px); width: 100%; max-width: 700px; }
.answer-tile {
    background: var(--card); border: 2px solid rgba(245,247,255,0.08);
   color: var(--headline); font-family: var(--font-body); font-size: 0.95rem;
    padding: clamp(12px, 2.2vh, 20px) 16px; cursor: pointer; text-align: left; position: relative; overflow: hidden;
    transition: transform 0.08s ease, border-color 0.2s ease, background 0.2s ease;
    min-height: clamp(48px, 8vh, 64px); display: flex; align-items: center;
}
/* Selber Shine-Sweep wie auf allen anderen Buttons/Kacheln -- Antwort-Optionen sind
   die meistgeklickten Elemente im ganzen Spiel und duerfen keine Ausnahme sein. */
.answer-tile::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg); transition: left 0.5s ease; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .answer-tile:hover:not(.disabled):not(.correct-answer):not(.wrong-answer)::after { left: 130%; }
    .answer-tile:hover:not(.disabled):not(.correct-answer):not(.wrong-answer) { border-color: var(--cyan); background: rgba(0,240,255,0.08); }
}
.answer-tile:active:not(.disabled) { transform: scale(0.95); }
/* Nicht gewaehlte Antworten nach Aufloesung: bewusst ein flacher, satter Grauton
   (wie der "Bald verfuegbar"-Kreis bei den Creator-Kacheln) statt nur verblasster
   Opacity -- eine dedizierte graue Flaeche liest sich als klare Design-Entscheidung,
   nicht als "kaputt/ausgewaschen". */
.answer-tile.disabled {
    background: #2A2F52 !important;
    border-color: #3A4066 !important;
    color: #7C85AB !important;
    filter: none;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
    pointer-events: none;
    cursor: not-allowed;
}

/* 50/50 braucht eine eigene, spuerbare Klasse statt .disabled mitzubenutzen --
   sonst sieht man den Effekt kaum (dieselbe leichte Verblassung wie am Rundenende). */
.answer-tile.fifty-fifty-hidden {
    pointer-events: none;
    animation: fiftyFiftyEliminate 0.4s ease forwards;
}
@keyframes fiftyFiftyEliminate {
    0% { opacity: 1; filter: none; transform: scale(1); }
    40% { opacity: 0.45; filter: grayscale(0.7) brightness(0.7); transform: scale(0.93); }
    100% { opacity: 0.12; filter: grayscale(1) brightness(0.5); transform: scale(0.94); }
}

/* Flat + Neon-Glow statt Glas-Gradient: dieselbe Sprache wie ueberall sonst in der
   App (z.B. .leaderboard-tab.is-active) -- satte Vollfarbe, dunkler Navy-Text,
   harter Aussen-Glow statt Glanz-Verlauf/Glass-Highlight. */
.answer-tile.correct-answer {
    background: var(--green) !important;
    border-color: var(--green) !important;
    color: var(--navy) !important; font-weight: 700;
    box-shadow: 0 0 24px rgba(34,197,94,0.7), 0 0 50px rgba(34,197,94,0.35);
    animation: answerPop 0.4s cubic-bezier(0.34,1.56,0.64,1), ringPulseGreen 0.6s ease-out;
    opacity: 1 !important; filter: none !important; /* darf von .disabled (gleichzeitig auf der Kachel!) nicht verblasst werden -- color ebenso, siehe .answer-tile.disabled */
}
.answer-tile.correct-answer::before {
    content: '✓'; position: absolute; right: 16px; top: 50%; font-family: var(--font-head); font-size: 1.3rem; font-weight: 900;
    animation: iconPopIn 0.35s cubic-bezier(0.34,1.56,0.64,1) 0.12s both;
}

.answer-tile.wrong-answer {
    background: var(--red) !important;
    border-color: var(--red) !important;
    color: var(--navy) !important; font-weight: 700;
    box-shadow: 0 0 24px rgba(239,68,68,0.7), 0 0 50px rgba(239,68,68,0.35);
    animation: errorShake 0.4s ease, ringPulseRed 0.6s ease-out;
    opacity: 1 !important; filter: none !important; /* darf von .disabled (gleichzeitig auf der Kachel!) nicht verblasst werden -- color ebenso, siehe .answer-tile.disabled */
}
.answer-tile.wrong-answer::before {
    content: '✕'; position: absolute; right: 16px; top: 50%; font-family: var(--font-head); font-size: 1.3rem; font-weight: 900;
    animation: iconPopIn 0.35s cubic-bezier(0.34,1.56,0.64,1) 0.12s both;
}

/* Cliffhanger: bewusst NICHT gruen -- die Antwort steht noch nicht fest, das
   soll sich auch optisch neutral/"in der Schwebe" anfuehlen statt wie ein Sieg. */
.answer-tile.cliffhanger-pending {
    border-color: var(--gold) !important;
    background: rgba(255,215,0,0.12) !important;
    color: var(--headline) !important; font-weight: 700;
    box-shadow: 0 0 20px rgba(255,215,0,0.4);
    animation: cliffhangerPendingPulse 1.4s ease-in-out infinite;
    opacity: 1 !important; filter: none !important;
}
.answer-tile.cliffhanger-pending::before { content: '⏳'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; }
@keyframes cliffhangerPendingPulse { 0%, 100% { box-shadow: 0 0 12px rgba(255,215,0,0.3); } 50% { box-shadow: 0 0 24px rgba(255,215,0,0.55); } }

.answer-tile.reveal-correct {
    border-color: var(--green) !important;
    color: var(--headline) !important;
    box-shadow: inset 0 0 0 2px var(--green), 0 0 12px rgba(34,197,94,0.4);
    animation: revealGlowPulse 1s ease-in-out infinite;
    opacity: 1 !important; filter: none !important; /* darf von .disabled (gleichzeitig auf der Kachel!) nicht verblasst werden -- color ebenso, siehe .answer-tile.disabled */
}
.answer-tile.reveal-correct::before { content: '✓'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--green); font-family: var(--font-head); font-size: 1.3rem; font-weight: 900; }

@keyframes answerPop { 0% { transform: scale(1); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes revealGlowPulse { 0%, 100% { box-shadow: inset 0 0 0 2px var(--green), 0 0 8px rgba(34,197,94,0.3); } 50% { box-shadow: inset 0 0 0 2px var(--green), 0 0 22px rgba(34,197,94,0.7); } }
/* Icon ploppt zeitversetzt nach dem Tile-Pop rein -- zweistufiges Feedback statt allem auf einmal */
@keyframes iconPopIn { 0% { opacity: 0; transform: translateY(-50%) scale(0.3); } 60% { opacity: 1; transform: translateY(-50%) scale(1.25); } 100% { opacity: 1; transform: translateY(-50%) scale(1); } }
/* Kurzer sich ausbreitender Ring beim Treffer -- reine box-shadow-Animation, kollidiert nicht
   mit answerPop/errorShake (die nur transform animieren), daher als zweite Animation kombinierbar. */
@keyframes ringPulseGreen { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6), 0 0 26px rgba(34,197,94,0.65); } 60% { box-shadow: 0 0 0 18px rgba(34,197,94,0), 0 0 26px rgba(34,197,94,0.65); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0), 0 0 26px rgba(34,197,94,0.65); } }
@keyframes ringPulseRed { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6), 0 0 26px rgba(239,68,68,0.65); } 60% { box-shadow: 0 0 0 18px rgba(239,68,68,0), 0 0 26px rgba(239,68,68,0.65); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0), 0 0 26px rgba(239,68,68,0.65); } }

.answer-tile { opacity: 0; animation: tileEnter 0.35s ease forwards; }
.answer-tile:nth-child(1) { animation-delay: 0ms; }
.answer-tile:nth-child(2) { animation-delay: 70ms; }
.answer-tile:nth-child(3) { animation-delay: 140ms; }
.answer-tile:nth-child(4) { animation-delay: 210ms; }
@keyframes tileEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Lifelines */
.lifeline-bar { display: flex; gap: 10px; margin-top: clamp(10px, 2.5vh, 24px); }
.lifeline-btn { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); font-family: var(--font-head); font-size: 0.65rem; padding: 10px 14px; cursor: pointer; letter-spacing: 0.5px; transition: 0.2s ease; display: flex; align-items: center; gap: 6px; min-height: 44px; }
@media (hover: hover) and (pointer: fine) {
    .lifeline-btn:hover:not(:disabled) { background: var(--cyan); color: var(--navy); box-shadow: 0 0 15px var(--cyan); }
}
.lifeline-btn:active:not(:disabled) { transform: scale(0.95); }
.lifeline-btn:disabled { opacity: 0.25; cursor: not-allowed; text-decoration: line-through; }
#continue-btn {
    margin-top: clamp(12px, 2.5vh, 24px);
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    box-shadow: none;
}
#new-round-btn { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); box-shadow: none; }
#replay-same-btn { margin: 0 auto 12px auto; background: transparent; border: 1px solid var(--gold); color: var(--gold); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
    #continue-btn:hover { background: var(--cyan); color: var(--navy); box-shadow: 0 0 20px var(--cyan); filter: none; }
    #replay-same-btn:hover { background: var(--gold); color: var(--navy); box-shadow: 0 0 20px var(--gold); filter: none; }
    #new-round-btn:hover { background: var(--cyan); color: var(--navy); box-shadow: 0 0 20px var(--cyan); filter: none; }
}

/* Impact-Zahl: fliegt bei Punktegewinn ueber der Antwort-Kachel hoch und verblasst */
/* Selbe Typografie/Glow-Formel wie .streak-popup/.speedster-popup (Font, Weight,
   letter-spacing, zweischichtiger Neon-Glow) und dieselbe Pop-Halten-Fade-Kurve
   wie @keyframes speedsterPop -- soll sich wie derselbe Effekt-Baukasten anfuehlen,
   nur mit Aufwaertsdrift statt fixer Position. */
.impact-number {
    position: fixed; transform: translate(-50%, 0) scale(0.3);
    font-family: var(--font-head); font-weight: 900; font-size: 2.1rem; color: var(--gold);
    text-shadow: 0 0 20px var(--gold), 0 0 40px rgba(255,215,0,0.6);
    letter-spacing: 2px; text-align: center;
    z-index: 550; pointer-events: none;
    animation: impactFly 1.5s ease forwards;
}
@keyframes impactFly {
    0% { opacity: 0; transform: translate(-50%, 0) scale(0.3); }
    15% { opacity: 1; transform: translate(-50%, -18px) scale(1.15); }
    30% { transform: translate(-50%, -30px) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -70px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -100px) scale(1); }
}

/* Speedster Popup */
.speedster-popup {
    position: fixed; top: 30%; left: 50%; transform: translate(-50%, -50%) scale(0.5);
    font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; color: var(--gold);
    text-shadow: 0 0 20px var(--gold), 0 0 40px rgba(255,215,0,0.6);
    opacity: 0; pointer-events: none; z-index: 500; letter-spacing: 2px; text-align: center;
}
.speedster-popup.show { animation: speedsterPop 1.5s ease forwards; }

/* Ambient Flash */
.ambient-flash { position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: 0; }
.ambient-flash.flash-correct { animation: flashGreen 0.8s ease forwards; }
.ambient-flash.flash-wrong { animation: flashRed 0.8s ease forwards; }
.ambient-flash.flash-legendary { animation: flashLegendary 1.4s ease forwards; }


/* =========================================================
   ENDSCREEN
   ========================================================= */
.honor-title { font-family: var(--font-head); font-size: 1.8rem; text-align: center; margin-bottom: 10px; letter-spacing: 1px; }
.honor-title.tier1 { color: #8a93b0; }
.honor-title.tier2 { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.honor-title.tier3 { color: var(--purple); text-shadow: 0 0 16px var(--purple); animation: pulse 2s infinite; }
.honor-title.tier4 { color: var(--gold); text-shadow: 0 0 20px var(--gold); animation: pulse 1.6s infinite; }
.honor-title.tier5 { color: var(--gold); text-shadow: 0 0 25px var(--gold), 0 0 50px rgba(255,215,0,0.5); animation: goldExplode 1s ease; }
.end-score { font-family: var(--font-head); font-size: 3rem; text-align: center; color: var(--headline); margin-bottom: 6px; }
.end-stats { text-align: center; color: var(--subtext); font-size: 0.85rem; margin-bottom: 20px; }
.end-comment { text-align: center; font-style: italic; color: var(--subtext); max-width: 500px; margin: 0 auto 24px; line-height: 1.5; }
.end-record { text-align: center; font-family: var(--font-head); font-size: 0.8rem; color: var(--gold); text-shadow: 0 0 8px rgba(255,215,0,0.4); max-width: 500px; margin: -12px auto 24px; letter-spacing: 0.5px; }
.end-bonus-hint { text-align: center; font-family: var(--font-head); font-size: 0.8rem; color: var(--gold); max-width: 500px; margin: -12px auto 24px; letter-spacing: 0.5px; }
.cliffhanger-resolve { border: 1px solid var(--gold); padding: 16px; margin-bottom: 20px; max-width: 500px; text-align: center; color: var(--gold); font-size: 0.85rem; }

/* Leaderboard */
.leaderboard-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.leaderboard-tab {
    background: transparent; border: 1px solid var(--cyan); color: var(--cyan);
    font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 1px;
    padding: 8px 16px; cursor: pointer; text-transform: uppercase; transition: 0.2s ease;
}
.leaderboard-tab.is-active { background: var(--cyan); color: var(--navy); box-shadow: 0 0 15px var(--cyan); }
.leaderboard-list { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 8px; }
.leaderboard-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--card); border-left: 3px solid var(--cyan); }
.leaderboard-row .rank { font-family: var(--font-head); color: var(--cyan); width: 24px; }
.leaderboard-row.top1 { border-left-color: var(--gold); box-shadow: 0 0 12px rgba(255,215,0,0.3); }
.leaderboard-row.top1 .rank { color: var(--gold); }
.leaderboard-row.top2 { border-left-color: var(--silver); box-shadow: 0 0 10px rgba(199,210,224,0.25); }
.leaderboard-row.top2 .rank { color: var(--silver); }
.leaderboard-row.top3 { border-left-color: var(--bronze); box-shadow: 0 0 10px rgba(226,152,75,0.25); }
.leaderboard-row.top3 .rank { color: var(--bronze); }
.leaderboard-row .lb-name { flex: 1; font-family: var(--font-body); }
.leaderboard-row .lb-score { font-family: var(--font-head); color: var(--headline); }

/* Auf/Ab-Pfeil (CoD/Overwatch-Prinzip): zeigt die Rangaenderung seit dem letzten Blick */
.rank-change { font-family: var(--font-head); font-size: 0.7rem; font-weight: 900; margin-left: 8px; }
.rank-change.up { color: var(--green); text-shadow: 0 0 6px var(--green); }
.rank-change.down { color: var(--red); text-shadow: 0 0 6px var(--red); }

/* Eigene Zeile: immer erkennbar, egal ob unter den Top 20 oder als angehaengte
   Extra-Zeile mit echtem Rang -- Rocket-League/Valorant-Prinzip ("wo stehe ich").
   Gewinnt bewusst gegen top1/top2/top3-Farben (spaeter in der Kaskade), falls man
   selbst auf dem Treppchen steht -- "das bin ich" schlaegt die Medaillenfarbe. */
.leaderboard-row.is-you { border-left-color: var(--purple); background: rgba(255,0,127,0.14); box-shadow: 0 0 14px rgba(255,0,127,0.25); }
.leaderboard-row.is-you .rank { color: var(--purple); }
.leaderboard-divider { text-align: center; color: var(--subtext); letter-spacing: 6px; padding: 2px 0; opacity: 0.5; }

/* =========================================================
   MEIN PROFIL
   ========================================================= */
.profile-header { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 24px; }
.profile-avatar-wrap {
    width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--cyan);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    box-shadow: 0 0 14px rgba(0,240,255,0.4); background: var(--card); font-size: 2.4rem;
}
.profile-avatar-wrap.tier1 { border-color: #8a93b0; box-shadow: 0 0 12px rgba(138,147,176,0.4); }
.profile-avatar-wrap.tier2 { border-color: var(--cyan); box-shadow: 0 0 14px rgba(0,240,255,0.5); }
.profile-avatar-wrap.tier3 { border-color: var(--purple); box-shadow: 0 0 16px rgba(255,0,127,0.5); }
.profile-avatar-wrap.tier4, .profile-avatar-wrap.tier5 { border-color: var(--gold); box-shadow: 0 0 18px rgba(255,215,0,0.55); }
#profile-avatar { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--font-head); font-size: 1.3rem; color: var(--headline); margin-top: 10px; }
.profile-tier { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 1px; color: var(--subtext); }

.profile-ring-wrap { position: relative; width: 220px; height: 220px; margin: 10px 0 16px 0; }
.profile-ring-center {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.profile-ring-total { font-family: var(--font-head); font-size: 1.8rem; font-weight: 900; color: var(--headline); }
.profile-ring-label { font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 1.5px; color: var(--subtext); }

.profile-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; margin-bottom: 24px; max-width: 480px; }
.profile-legend-item { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 0.75rem; color: var(--subtext); }
.profile-legend-dot { width: 10px; height: 10px; flex-shrink: 0; }

.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 480px; margin-bottom: 24px; }
.profile-stat-card { background: var(--card); border: 1px solid rgba(245,247,255,0.08); border-left: 3px solid var(--cyan); padding: 14px 16px; }
.profile-stat-card .stat-label { font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 1px; color: var(--subtext); display: block; margin-bottom: 6px; }
.profile-stat-card .stat-value { font-family: var(--font-head); font-size: 1.2rem; color: var(--headline); }

/* Freunde-Bereich im Profil */
.profile-friends { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; }
.profile-friends-title { font-family: var(--font-head); font-size: 0.85rem; color: var(--cyan); letter-spacing: 1px; margin-bottom: 16px; text-align: center; }
.friend-code-box { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--card); border: 1px solid rgba(0,240,255,0.25); padding: 20px; width: 100%; margin-bottom: 20px; }
.friend-code-label { font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 1.5px; color: var(--subtext); }
.friend-code-value { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: 4px; color: var(--headline); text-shadow: 0 0 10px rgba(0,240,255,0.4); }
#friend-code-qr { image-rendering: pixelated; }
.add-friend-row { display: flex; gap: 8px; width: 100%; margin-bottom: 8px; }
#add-friend-input {
    flex: 1; background: rgba(245,247,255,0.05); border: 1px solid rgba(245,247,255,0.15); color: var(--headline);
    font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; padding: 10px 12px; min-width: 0;
}
#add-friend-input:focus { outline: none; border-color: var(--cyan); }
.add-friend-row .btn-solid { width: auto; padding: 10px 18px; font-size: 0.7rem; }
.add-friend-msg { font-family: var(--font-body); font-size: 0.75rem; min-height: 1.2em; margin-bottom: 16px; text-align: center; }
.add-friend-msg.ok { color: var(--cyan); }
.add-friend-msg.err { color: var(--purple); }
.friends-list { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-bottom: 24px; }
.friend-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border-left: 3px solid var(--cyan); padding: 10px 14px; font-size: 0.85rem; }
.friend-row .friend-name { color: var(--headline); }
.friend-row .friend-score { font-family: var(--font-head); color: var(--cyan); }
.friends-list-empty { color: var(--subtext); font-size: 0.8rem; text-align: center; margin-bottom: 24px; }

/* Admin mini panel */
.admin-list { width: 100%; max-width: 600px; display: flex; flex-direction: column; gap: 10px; }
.admin-row { background: var(--card); padding: 14px; border-left: 3px solid var(--purple); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-row .aq-text { font-size: 0.85rem; }
.admin-row .aq-actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-row .aq-actions button { font-family: var(--font-head); font-size: 0.6rem; padding: 6px 10px; cursor: pointer; border: 1px solid; background: transparent; }
.aq-approve { color: var(--green); border-color: var(--green) !important; }
.aq-reject { color: var(--red); border-color: var(--red) !important; }

/* Submission form */
.form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-field label { font-family: var(--font-head); font-size: 0.65rem; color: var(--cyan); letter-spacing: 1px; }
.form-field input, .form-field textarea, .form-field select { background: rgba(8,18,40,0.6); border: 1px solid rgba(245,247,255,0.15); color: var(--headline); font-family: var(--font-body); padding: 10px; font-size: 0.9rem; width: 100%; }
.form-field select { cursor: pointer; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--cyan); }
.options-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.correct-radio-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.75rem; color: var(--subtext); }

/* =========================================================
   ANIMATIONEN
   ========================================================= */
@keyframes terminalBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ringPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-15px); } to { opacity: 1; transform: translateX(0); } }
@keyframes speedsterPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 30% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
@keyframes flashGreen { 0% { opacity: 0; background: radial-gradient(circle, rgba(34,197,94,0.5), transparent 70%); } 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flashRed { 0% { opacity: 0; background: radial-gradient(circle, rgba(239,68,68,0.5), transparent 70%); } 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flashLegendary { 0% { opacity: 0; background: radial-gradient(circle, rgba(255,215,0,0.65), transparent 75%); filter: brightness(1); } 30% { opacity: 1; filter: brightness(1.4); } 65% { opacity: 1; filter: brightness(1.1); } 100% { opacity: 0; filter: brightness(1); } }
@keyframes goldExplode { 0% { opacity: 0; transform: scale(0.7); filter: brightness(2.5); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); filter: brightness(1); } }
@keyframes errorShake { 0% { transform: translate3d(0,0,0); } 12% { transform: translate3d(-6px,0,0); } 25% { transform: translate3d(5px,0,0); } 37% { transform: translate3d(-5px,0,0); } 50% { transform: translate3d(4px,0,0); } 62% { transform: translate3d(-3px,0,0); } 75% { transform: translate3d(2px,0,0); } 87% { transform: translate3d(-1px,0,0); } 100% { transform: translate3d(0,0,0); } }

@keyframes cyberFadeIn { 0% { opacity: 0; filter: blur(4px); transform: scale(0.95); } 100% { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes matrixScan { 0% { top: -120%; } 100% { top: 120%; } }
@keyframes hologramBoot { 0% { opacity: 0; transform: scale(.85); filter: blur(8px) brightness(2); } 40% { opacity: .7; transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); } }
.fade-in-logo { animation: cyberFadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }

.transition-sweep { position: fixed; inset: 0; z-index: 9998; pointer-events: none; overflow: hidden; }
.transition-sweep::before {
    content: '';
    position: absolute; top: -20%; left: -30%;
    width: 40%; height: 140%;
    background: linear-gradient(100deg,
        transparent 0%, rgba(0,240,255,0.05) 30%, rgba(0,240,255,0.55) 48%,
        rgba(245,247,255,0.9) 50%, rgba(0,240,255,0.55) 52%, rgba(0,240,255,0.05) 70%, transparent 100%);
    transform: translateX(-120%) skewX(-12deg);
    filter: blur(2px);
}
.transition-sweep.active::before { animation: sweepAcross 0.62s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes sweepAcross {
    0% { transform: translateX(-120%) skewX(-12deg); }
    100% { transform: translateX(340%) skewX(-12deg); }
}

.view-container.fading { transition: opacity 0.15s ease; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    .transition-sweep::before { display: none; }
    .view-container.fading { transition: none; }
}

/* =========================================================
   MODAL OVERLAY
   ========================================================= */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); display: none; justify-content: center; align-items: center; z-index: 999; padding: 20px; }
.modal-backdrop.active { display: flex; }
.modal-window { background: var(--navy); border: 1px solid var(--cyan); box-shadow: 0 0 40px rgba(0,240,255,0.2); width: 90%; max-width: 500px; max-height: 85vh; overflow-y: auto; padding: 30px; position: relative; }
.modal-window.wide { max-width: 650px; }
.modal-close { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: var(--headline); font-size: 1.5rem; cursor: pointer; transition: 0.2s; }
@media (hover: hover) and (pointer: fine) {
    .modal-close:hover { color: var(--purple); text-shadow: 0 0 10px var(--purple); }
}
.modal-body h3 { font-family: var(--font-head); font-size: 1rem; color: var(--cyan); margin-bottom: 10px; }
.modal-body p { font-size: 0.9rem; color: var(--subtext); line-height: 1.5; }

/* Legal footer */
.legal-footer { position: absolute; bottom: 6px; right: 12px; z-index: 3; display: flex; gap: 12px; }
.legal-footer a { font-size: 0.6rem; color: rgba(185,195,230,0.4); text-decoration: none; font-family: var(--font-body); letter-spacing: 0.5px; }
@media (hover: hover) and (pointer: fine) {
    .legal-footer a:hover { color: var(--cyan); }
}

/* Focus visibility (Accessibility) */
button:focus-visible, .bento-tile:focus-visible, .answer-tile:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--cyan); outline-offset: 2px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .grid-2-col { grid-template-columns: 1fr; }
    .answers-grid { grid-template-columns: 1fr; }
    .view-container { padding-left: 16px; padding-right: 16px; }
    .leaderboard-tab { font-size: 0.6rem; padding: 7px 10px; letter-spacing: 0.5px; }
    .app-container { height: calc(100dvh - 50px); border: none; } /* 50px Header korrekt abgezogen statt komplett ignoriert */
    .options-input-grid { grid-template-columns: 1fr; }
    .legal-footer { position: static; justify-content: center; margin-top: 10px; padding-bottom: 10px; }

    /* Header: RANG/TEILEN werden zu Icon-Buttons, SCORE-Label verschwindet, Logo etwas kleiner */
   .ehren-header-full { padding: 0 8px; }
    .header-logo { height: 22px; }
    .header-left, .header-nav { gap: 6px; }
    .header-nav .header-btn:not(.header-icon-btn) {
        width: 28px; height: 28px; padding: 0; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 0; background: var(--cyan); border: none; color: var(--navy);
        box-shadow: 0 0 6px rgba(0,240,255,0.35); flex-shrink: 0;
    }
    .header-icon-btn { width: 28px; height: 28px; flex-shrink: 0; }
    .header-right { gap: 10px !important; }
    #leaderboard-btn::before { content: '🏆'; font-size: 0.85rem; }
    #header-share-btn::before { content: '↗'; font-size: 1rem; }
    .header-right span.neon-text-pink { font-size: 0.85rem !important; }
    .score-label { display: none; }

    /* Co-Host-Bar: Grundzeile bleibt fix, Nachricht schwebt als Overlay (siehe .co-host-message-overlay) */
    .co-host-bar { padding: 8px 14px; }
    .co-host-terminal { font-size: 0.8rem; gap: 10px; }
    .host-avatar { width: 66px; height: 66px; }
    .typewriter-text { height: 4.9rem; }

    /* Frage-Kopfzeile: Sponsor-Tag, Punkte, Timer in einer schlanken Zeile statt gestapelt */
    .quiz-header-bar { grid-template-columns: auto 1fr auto; gap: 8px; }
    .quiz-header-left .tag-pill { padding: 4px 8px; font-size: 0.5rem; gap: 4px; }
    .quiz-header-left .tag-pill span:not(.tag-sponsor-logo):not(.sponsor-status) { display: none; } /* Text weg, nur Sponsor-Logo/Icon bleibt sichtbar */
    .progress-dots { max-width: 140px; gap: 4px; }
    .progress-dot { width: 6px; height: 6px; }

  /* Kompakterer Timer */
    .timer-wrap { width: 40px; height: 40px; }
    .timer-number { font-size: 0.85rem; }

    /* Nur im Quiz-Screen: Schrift/Abstaende nochmal enger, hier gilt "niemals scrollen" am striktesten.
       Mode-/Matrix-Auswahl bleibt bei den normalen, grosszuegigeren clamp()-Werten. */
    #view-quiz .question-text { font-size: clamp(0.9rem, 2.2vh, 1.1rem); margin-bottom: clamp(8px, 1.8vh, 16px); min-height: 1.8em; }
    #view-quiz .answer-tile { font-size: 0.8rem; padding: clamp(8px, 1.6vh, 14px) 12px; min-height: clamp(40px, 6vh, 52px); }
    #view-quiz .answers-grid { gap: clamp(6px, 1.4vh, 10px); }
    #view-quiz .lifeline-bar { margin-top: clamp(6px, 1.6vh, 14px); }
    #view-quiz .lifeline-btn { font-size: 0.55rem; padding: 6px 8px; }
}

@keyframes holoRelease {
    0% { transform: scale(1); opacity: 1; filter: brightness(1) blur(0); }
    45% { transform: scale(1.18); opacity: 1; filter: brightness(1.8) blur(0); }
    100% { transform: scale(1.5); opacity: 0; filter: brightness(2.8) blur(6px); }
}
.app-container.system-loading { animation: fadeInContainer 1s ease-out forwards; }
@keyframes fadeInContainer { 0% { opacity: 0; transform: scale(0.98); } 100% { opacity: 1; transform: scale(1); } }

/* =========================================================
   ELITE INTRO BOOT SCREEN
   ========================================================= */
.intro-overlay {
    position: fixed; inset: 0;
    background: radial-gradient(circle at center, #081228 0%, #010103 100%);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.intro-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-content {
    position: relative; z-index: 10; text-align: center;
    display: flex; flex-direction: column; gap: 40px; align-items: center;
}
.intro-logo-elite {
    max-width: 520px; height: auto;
    opacity: 0;
    filter: drop-shadow(0 0 25px rgba(0,240,255,0.4));
}
.intro-logo-elite.reveal {
    animation: fade-in 2.5s ease forwards, float-subtle 7s ease-in-out infinite alternate;
}
.intro-overlay h1 {
    font-family: var(--font-head);
    font-size: 1.3rem; color: var(--headline);
    font-weight: 300; letter-spacing: 10px;
    margin: 0; text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0,240,255,0.3);
    min-height: 1.6rem; /* haelt das Layout stabil, waehrend die Zeile per JS eintickert */
}
.satire-notice {
    font-family: var(--font-body); font-size: 0.7rem; color: rgba(245,247,255,0.4);
    max-width: 380px; line-height: 1.5; text-align: center;
    opacity: 0;
}
.satire-notice.reveal { animation: fade-in-up 2s ease forwards 0.5s; }
.intro-btn-elite {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    padding: 18px 50px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}
.intro-btn-elite.reveal { animation: fade-in-up 2s ease forwards 0.9s; }
@media (hover: hover) and (pointer: fine) {
    .intro-btn-elite:hover {
        background: var(--cyan);
        color: var(--navy);
        border-color: var(--cyan);
        letter-spacing: 12px;
        box-shadow: 0 0 30px var(--cyan);
    }
}

@keyframes fade-in { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-subtle { 0% { transform: translateY(0px); } 100% { transform: translateY(-12px); } }

@media (max-width: 768px) {
    .intro-overlay h1 { font-size: 1.1rem; letter-spacing: 10px; }
    .intro-logo-elite { max-width: 320px; }
    .intro-btn-elite { padding: 15px 35px; font-size: 0.7rem; letter-spacing: 6px; }
}