:root {
    /* Główna kolorystyka - Niebieski Neonowy dopasowany pod awatar/Futurę */
    --primary-blue: #00d2ff;
    --secondary-blue: #3a7bd5;
    --bg-glass: rgba(10, 15, 30, 0.7);
    --border-glass: rgba(0, 210, 255, 0.4);
}

body {
    margin: 0;
    padding: 0;
    width: 1920px; /* Rozmiar nakładki (możesz zmienić na 1080x1920 pod TikToka) */
    height: 1080px;
    background-color: transparent !important; /* Przezroczyste tło dla OBS/TikTok Studio */
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

body.green-screen {
    background-color: #00ff00 !important;
}

/* Kontener baneru na samej górze (lub dole - wystarczy zmienić top na bottom) */
.overlay-container {
    position: absolute;
    top: 40px; 
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 85px;
}

/* Szklany, nowoczesny panel (Glassmorphism) */
.dynamic-banner {
    width: 100%;
    height: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.3), inset 0 0 15px rgba(0, 210, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Efekt błysku przechodzącego przez panel */
.dynamic-banner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shine 6s infinite linear;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Stylizacja tekstu wewnątrz baneru */
.banner-slide {
    position: absolute;
    font-size: 34px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateY(30px); /* Początkowo tekst jest wysunięty dół */
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
}

/* Tekst widoczny */
.banner-slide.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animacja wyjścia tekstu do góry */
.banner-slide.exit {
    opacity: 0;
    transform: translateY(-30px);
}

/* Wyróżniony tekst na niebiesko */
.highlight {
    color: var(--primary-blue);
    font-weight: 900;
    text-shadow: 0 0 15px var(--primary-blue);
}

/* --- Pasek postępu polubień (Like Goal) --- */
.like-goal-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--border-glass);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.like-goal-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

.like-goal-text span {
    color: var(--primary-blue);
}

.progress-bar-bg {
    width: 100%;
    height: 25px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-blue), var(--primary-blue));
    border-radius: 12px;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 15px var(--primary-blue);
    position: relative;
}

/* Błysk na pasku */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: slide-shine 2s infinite linear;
}

@keyframes slide-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- Elementy interaktywne (Jumpscare, Donates) --- */
.hidden {
    display: none !important;
}

#jumpscare-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

#jumpscare-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#gift-alert-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5000;
    background: var(--bg-glass);
    border: 2px solid #ffaa00;
    border-radius: 20px;
    padding: 30px 50px;
    box-shadow: 0 0 40px rgba(255, 170, 0, 0.4);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.gift-text {
    color: #ffd700;
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    text-align: center;
    animation: pulse 1s infinite alternate;
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* --- Agresywne Trolle --- */
#blur-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 8000;
    backdrop-filter: blur(25px) saturate(200%) hue-rotate(90deg);
    -webkit-backdrop-filter: blur(25px) saturate(200%) hue-rotate(90deg);
    pointer-events: none;
    transition: backdrop-filter 2s ease;
}

#bsod-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    background-color: #0078d7;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 10%;
    box-sizing: border-box;
}

.bsod-content {
    max-width: 1000px;
}

.bsod-content h1 {
    font-size: 150px;
    margin: 0 0 50px 0;
    font-weight: normal;
}

.bsod-content h2, .bsod-content p {
    font-size: 35px;
    margin: 10px 0;
    font-weight: normal;
}

/* --- Flashbang --- */
#flashbang-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: white;
    z-index: 15000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}
#flashbang-overlay.active {
    opacity: 1;
    transition: opacity 8s ease-out; /* Długi efekt odzyskiwania wzroku */
}

/* --- Wasted --- */
#wasted-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: grayscale(100%) contrast(120%);
    -webkit-backdrop-filter: grayscale(100%) contrast(120%);
    z-index: 12000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.wasted-text {
    font-size: 180px;
    font-family: impact, sans-serif;
    color: #b20000;
    text-shadow: 4px 4px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    letter-spacing: 15px;
    animation: wasted-zoom 4s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}
@keyframes wasted-zoom {
    0% { transform: scale(0.5); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: scale(1.1); opacity: 0; }
}

/* --- Hacker Glitch --- */
#hacker-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,25,0,0.85);
    z-index: 11000;
    display: flex; justify-content: center; align-items: center;
    font-family: 'Courier New', Courier, monospace;
    pointer-events: none;
}
.glitch-text {
    font-size: 120px;
    color: #0f0;
    font-weight: bold;
    position: relative;
    text-shadow: 0 0 15px #0f0;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,25,0,0.85);
}
.glitch-text::before {
    left: 4px; text-shadow: -4px 0 #f00; clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -4px; text-shadow: -4px 0 #00f; clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}
@keyframes glitch-skew { 0% { transform: skew(0deg); } 20% { transform: skew(-5deg); } 40% { transform: skew(5deg); } 100% { transform: skew(0deg); } }
@keyframes glitch-anim { 0% { clip: rect(20px, 9999px, 30px, 0); } 100% { clip: rect(100px, 9999px, 110px, 0); } }
@keyframes glitch-anim2{ 0% { clip: rect(80px, 9999px, 90px, 0); } 100% { clip: rect(10px, 9999px, 20px, 0); } }

/* --- Money Rain --- */
#rain-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9000; overflow: hidden;
}
.money-drop {
    position: absolute; top: -100px;
    font-size: 60px;
    animation: fall linear forwards;
}
@keyframes fall {
    to { transform: translateY(1200px) rotate(360deg); }
}

/* --- 10 NOWYCH EFEKTÓW --- */

/* Trzęsienie (Body) */
.earthquake-shake {
    animation: eq-shake 0.3s cubic-bezier(.36,.07,.19,.97) infinite !important;
}
@keyframes eq-shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-10px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(13px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -11px) rotate(1deg); }
    50% { transform: translate(-11px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 11px) rotate(0deg); }
    70% { transform: translate(13px, 1px) rotate(-1deg); }
    80% { transform: translate(-11px, -11px) rotate(1deg); }
    90% { transform: translate(11px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Blood */
#blood-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 10000;
    display: flex; justify-content: center; align-items: center; overflow: hidden;
}
.blood-splatter {
    position: absolute; width: 150%; height: 150%; object-fit: cover;
    opacity: 0; transform: scale(0.5);
    animation: splat 0.2s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}
@keyframes splat { 100% { opacity: 0.8; transform: scale(1); } }

/* Censor */
#censor-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 20000;
    display: flex; justify-content: center; align-items: center;
}
.censor-bar {
    width: 60%; height: 150px;
    background: black; border: 4px solid white;
    color: white; font-size: 80px; font-weight: 900;
    display: flex; justify-content: center; align-items: center; letter-spacing: 20px;
}

/* Night Vision */
#night-vision-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 11000;
    background: radial-gradient(circle, transparent 20%, rgba(0, 50, 0, 0.8) 120%);
    backdrop-filter: sepia(100%) hue-rotate(60deg) saturate(300%) contrast(150%);
    -webkit-backdrop-filter: sepia(100%) hue-rotate(60deg) saturate(300%) contrast(150%);
    box-shadow: inset 0 0 100px rgba(0,255,0,0.4);
}
#night-vision-overlay::after {
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px);
}

/* FBI Lights */
#fbi-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 12000; }
.police-lights { width: 100%; height: 100%; box-shadow: inset 0 0 150px blue; animation: police-flash 0.5s infinite; }
@keyframes police-flash { 0% { box-shadow: inset 0 0 200px red; } 50% { box-shadow: inset 0 0 200px blue; } }

/* Invert */
#invert-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 9500;
    backdrop-filter: invert(100%); -webkit-backdrop-filter: invert(100%);
}

/* Sniper Laser */
#sniper-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 9800; }
.sniper-dot {
    position: absolute; width: 25px; height: 25px; background: red; border-radius: 50%;
    box-shadow: 0 0 20px red, 0 0 40px red;
    animation: sniper-hunt 4s ease-in-out forwards; opacity: 0;
}
@keyframes sniper-hunt {
    0% { top: 10%; left: 90%; opacity: 0; }
    10% { opacity: 1; top: 20%; left: 70%; }
    40% { top: 60%; left: 30%; }
    70% { top: 50%; left: 50%; opacity: 1; }
    98% { top: 50%; left: 50%; opacity: 1; transform: scale(1); }
    100% { top: 50%; left: 50%; opacity: 0; transform: scale(5); }
}

/* VHS Retro */
#vhs-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 9000;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2) 2px, transparent 2px, transparent 4px);
    backdrop-filter: blur(1px) saturate(70%);
}
.vhs-text {
    position: absolute; top: 40px; right: 60px;
    font-size: 50px; font-family: 'Courier New', Courier, monospace; color: white;
    text-shadow: 2px 2px 0px black;
}

/* Fake Call */
#fake-call-overlay {
    position: fixed; top: 20px; right: 20px; pointer-events: none; z-index: 10000;
    animation: slideInRight 1s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}
.iphone-call {
    width: 350px; background: rgba(30,30,30,0.9); border-radius: 20px; padding: 20px;
    display: flex; flex-direction: column; align-items: center; color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(10px); font-family: sans-serif;
}
.caller-pic { width: 100px; height: 100px; border-radius: 50%; margin-bottom: 15px; }
.call-buttons { display: flex; gap: 40px; margin-top: 20px; width: 100%; justify-content: center; }
.btn-decline { width: 70px; height: 70px; background: #ff3b30; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: bold;}
.btn-accept { width: 70px; height: 70px; background: #34c759; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: bold;}
@keyframes slideInRight { 0% { transform: translateX(120%); } 100% { transform: translateX(0); } }

/* Thunderstorm */
#thunder-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 15000;
    background: white; opacity: 0; transition: opacity 0.1s;
}

/* ===== NOWE EFEKTY DLA INTERAKCJI TIKTOK ===== */

/* ===== DANCE OVERLAY – PEŁNOEKRANOWY EFEKT ===== */
#dance-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Disco lights – pełny ekran z animowanymi kolorami */
.disco-lights {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9998;
    animation: disco-color 0.5s infinite;
    mix-blend-mode: screen;
}

@keyframes disco-color {
    0%   { background: radial-gradient(ellipse at 20% 50%, rgba(255,0,100,0.25) 0%, transparent 60%),
                       radial-gradient(ellipse at 80% 20%, rgba(0,100,255,0.2) 0%, transparent 50%); }
    25%  { background: radial-gradient(ellipse at 70% 80%, rgba(0,255,100,0.25) 0%, transparent 60%),
                       radial-gradient(ellipse at 30% 10%, rgba(255,0,255,0.2) 0%, transparent 50%); }
    50%  { background: radial-gradient(ellipse at 50% 30%, rgba(255,255,0,0.25) 0%, transparent 60%),
                       radial-gradient(ellipse at 10% 70%, rgba(0,255,255,0.2) 0%, transparent 50%); }
    75%  { background: radial-gradient(ellipse at 30% 60%, rgba(255,100,0,0.25) 0%, transparent 60%),
                       radial-gradient(ellipse at 80% 40%, rgba(100,0,255,0.2) 0%, transparent 50%); }
    100% { background: radial-gradient(ellipse at 60% 20%, rgba(255,0,200,0.25) 0%, transparent 60%),
                       radial-gradient(ellipse at 20% 80%, rgba(0,200,255,0.2) 0%, transparent 50%); }
}

/* Tekst tańca – DUŻY, centralny, mega glow */
.dance-text {
    position: relative;
    z-index: 10001;
    color: #fff;
    font-size: 52px;
    font-weight: 900;
    text-align: center;
    white-space: pre-line;
    letter-spacing: 3px;
    animation: dance-rainbow 1.5s infinite linear, dance-bounce 0.4s infinite alternate;
    text-shadow:
        0 0 20px rgba(255,0,255,0.9),
        0 0 40px rgba(255,0,255,0.6),
        0 0 80px rgba(0,255,255,0.4),
        0 0 120px rgba(255,255,0,0.3);
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
}

@keyframes dance-rainbow {
    0%   { color: #ff00ff; text-shadow: 0 0 30px #ff00ff, 0 0 60px #ff00ff, 0 0 100px rgba(255,0,255,0.4); }
    20%  { color: #00ffff; text-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff, 0 0 100px rgba(0,255,255,0.4); }
    40%  { color: #ffff00; text-shadow: 0 0 30px #ffff00, 0 0 60px #ffff00, 0 0 100px rgba(255,255,0,0.4); }
    60%  { color: #ff6600; text-shadow: 0 0 30px #ff6600, 0 0 60px #ff6600, 0 0 100px rgba(255,100,0,0.4); }
    80%  { color: #00ff00; text-shadow: 0 0 30px #00ff00, 0 0 60px #00ff00, 0 0 100px rgba(0,255,0,0.4); }
    100% { color: #ff00ff; text-shadow: 0 0 30px #ff00ff, 0 0 60px #ff00ff, 0 0 100px rgba(255,0,255,0.4); }
}

@keyframes dance-bounce {
    0%   { transform: translateY(0) scale(1) rotate(-2deg); }
    100% { transform: translateY(-15px) scale(1.05) rotate(2deg); }
}

/* Pulsujący border na ekranie */
.dance-border-ring {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9997;
    border: 4px solid transparent;
    animation: border-disco 0.6s infinite;
}

@keyframes border-disco {
    0%   { border-color: rgba(255,0,255,0.6); box-shadow: inset 0 0 40px rgba(255,0,255,0.15); }
    33%  { border-color: rgba(0,255,200,0.6); box-shadow: inset 0 0 40px rgba(0,255,200,0.15); }
    66%  { border-color: rgba(255,255,0,0.6); box-shadow: inset 0 0 40px rgba(255,255,0,0.15); }
    100% { border-color: rgba(0,100,255,0.6); box-shadow: inset 0 0 40px rgba(0,100,255,0.15); }
}

/* Konfetti – spadające */
.dance-confetti {
    position: fixed;
    top: -20px;
    width: 12px;
    height: 12px;
    pointer-events: none;
    z-index: 10000;
    border-radius: 2px;
    animation: confetti-fall var(--fall-duration) linear forwards;
    opacity: 0.9;
}

@keyframes confetti-fall {
    0%   { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    50%  { opacity: 0.8; transform: translateY(50vh) rotate(360deg) translateX(var(--drift-1)); }
    100% { opacity: 0; transform: translateY(105vh) rotate(720deg) translateX(var(--drift-2)) scale(0.5); }
}

/* Disco ball emoji */
.dance-discoball {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px;
    z-index: 10002;
    pointer-events: none;
    animation: discoball-spin 2s infinite linear;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
}

@keyframes discoball-spin {
    0%   { transform: translateX(-50%) rotate(0deg) scale(1); }
    50%  { transform: translateX(-50%) rotate(180deg) scale(1.1); }
    100% { transform: translateX(-50%) rotate(360deg) scale(1); }
}

/* TikTok Gift Popup */
#tiktok-gift-popup {
    position: fixed; bottom: 150px; left: 50%;
    transform: translateX(-50%);
    z-index: 8000; pointer-events: none;
    background: linear-gradient(135deg, rgba(30,0,50,0.9), rgba(0,20,40,0.9));
    border: 2px solid var(--primary-blue);
    border-radius: 16px;
    padding: 18px 40px;
    box-shadow: 0 0 40px rgba(0,210,255,0.5);
    animation: gift-fade-in 0.4s ease-out forwards;
    display: flex;
    align-items: center;
    gap: 20px;
}
.tiktok-gift-text {
    font-size: 36px; font-weight: 700;
    color: white;
    text-shadow: 0 0 15px rgba(0,210,255,0.8);
    text-align: center;
}
@keyframes gift-fade-in {
    0% { transform: translateX(-50%) translateY(30px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Upside Down (body rotation via class) */
.upside-down {
    transform: rotate(180deg) !important;
    transition: transform 0.5s ease-in-out !important;
}
