/* ==============================================================================
   ADGEDDON GAME ENGINE STYLES (game.css)
   ============================================================================== */

/* --- Fullscreen Adblock Detection Screen --- */
.adblock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 12, 0.96);
    backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.4s ease-out;
}

.adblock-card {
    background: #12121c;
    border: 3px solid #ff2a2a;
    border-radius: 12px;
    max-width: 620px;
    width: 100%;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 42, 42, 0.6), inset 0 0 30px rgba(255, 42, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.adblock-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        -45deg,
        #ffd700,
        #ffd700 12px,
        #ff2a2a 12px,
        #ff2a2a 24px
    );
}

.adblock-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    animation: pulse-icon 1.5s infinite alternate;
}

@keyframes pulse-icon {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px red); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 20px red); }
}

.adblock-card h2 {
    color: #ff2a2a;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: 0.12em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.adblock-card h3 {
    color: #ffd700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.adblock-quote {
    font-style: italic;
    color: #8888aa;
    font-size: 0.95rem;
    margin-bottom: 18px;
    border-left: 3px solid #ffd700;
    padding-left: 12px;
    text-align: left;
}

.adblock-desc {
    color: #d0d0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: left;
}

.adblock-actions {
    margin-bottom: 16px;
}

.adblock-btn {
    background: linear-gradient(135deg, #ff2a2a, #cc0000);
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.6);
    transition: all 0.2s ease;
}

.adblock-btn:hover {
    background: #ffffff;
    color: #ff2a2a;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.9);
    transform: scale(1.03);
}

.adblock-footnote {
    font-size: 0.8rem;
    color: #777790;
}

/* --- Telemetry Strip (Cloudflare Edge & Status) --- */
.telemetry-strip {
    width: 100%;
    max-width: 860px;
    background: rgba(12, 12, 18, 0.9);
    border: 1px solid #222233;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.75rem;
    color: #00ffcc;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.telemetry-item span.highlight {
    color: #ffd700;
    font-weight: bold;
}

/* --- HUD Upgrades --- */
.hud-btn {
    background: rgba(0, 255, 204, 0.15);
    color: #00ffcc;
    border: 1px solid #00ffcc;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.05em;
    transition: all 0.15s ease;
}

.hud-btn:hover {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 10px #00ffcc;
}

.hud-btn.active {
    background: #00ffcc;
    color: #000;
}

.hud-progress-container {
    width: 100%;
    background: #20202e;
    height: 8px;
    border-radius: 4px;
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid #333348;
}

.hud-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00ffcc, #ffd700);
    transition: width 0.4s ease-out;
}

.sanity-fill.danger {
    background: #ff2a2a !important;
    animation: rapid-pulse 0.6s infinite alternate !important;
}

@keyframes rapid-pulse {
    0% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Vent Sanity Emergency Button */
.vent-btn {
    display: inline-block;
    background: #ffd700;
    color: #111;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    margin-top: 6px;
    letter-spacing: 0.05em;
    transition: transform 0.1s ease;
}

.vent-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

.vent-btn:active {
    transform: scale(0.95);
}

/* --- Level Mission Alert Banner --- */
.mission-banner {
    width: 100%;
    max-width: 860px;
    background: linear-gradient(90deg, rgba(255, 42, 42, 0.25), rgba(20, 20, 30, 0.9), rgba(0, 255, 204, 0.25));
    border: 2px solid var(--accent-neon);
    border-radius: 6px;
    padding: 14px 20px;
    margin: 0 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.3);
    animation: glow-border 3s infinite alternate;
}

@keyframes glow-border {
    0% { border-color: #00ffcc; box-shadow: 0 0 15px rgba(0, 255, 204, 0.2); }
    100% { border-color: #ffd700; box-shadow: 0 0 25px rgba(255, 215, 0, 0.4); }
}

.mission-title {
    font-size: 0.9rem;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mission-desc {
    font-size: 0.88rem;
    color: #f0f0f5;
    line-height: 1.4;
}

/* --- Level 1: Floating Rogue Tracking Beacons --- */
.tracking-beacon {
    position: fixed;
    z-index: 9998;
    background: rgba(255, 42, 42, 0.9);
    color: #ffffff;
    border: 2px solid #ffd700;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float-drift 4s ease-in-out infinite alternate;
}

.tracking-beacon:hover {
    transform: scale(1.15);
    background: #ffd700;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 215, 0, 1);
}

@keyframes float-drift {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
    100% { transform: translateY(8px) rotate(-2deg); }
}

/* --- Level 2: Clickbait Popups --- */
.clickbait-popup {
    position: fixed;
    z-index: 9997;
    background: #e8e8f0;
    color: #111;
    border: 2px solid #000;
    border-radius: 4px;
    padding: 12px;
    width: 260px;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clickbait-header {
    background: #000080;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 6px;
    margin: -12px -12px 8px -12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clickbait-close-btn {
    background: #c0c0c0;
    color: #000;
    border: 1px outset #fff;
    width: 18px;
    height: 18px;
    line-height: 14px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
}

.clickbait-close-btn:hover {
    background: #ff5555;
    color: #fff;
}

.clickbait-body {
    font-size: 0.82rem;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #222;
}

.clickbait-action-btn {
    display: block;
    width: 100%;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.clickbait-dismiss {
    display: block;
    text-align: center;
    margin-top: 6px;
    font-size: 0.7rem;
    color: #777;
    text-decoration: underline;
    cursor: pointer;
}

.clickbait-dismiss:hover {
    color: #ff2a2a;
}

/* --- Level 3: Boss Alpha Weak Spot Overlay --- */
.boss-target-reticle {
    background: rgba(255, 42, 42, 0.85);
    color: #ffffff;
    border: 2px dashed #ffd700;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 0.1em;
    margin: 8px 0;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    animation: target-pulse 1s infinite alternate;
}

.boss-target-reticle:hover {
    background: #ffd700;
    color: #000;
    transform: scale(1.05);
}

@keyframes target-pulse {
    0% { transform: scale(0.98); }
    100% { transform: scale(1.02); }
}

/* Boss Container Attack Badge */
.boss-strike-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 42, 42, 0.2);
    border: 1px solid #ff2a2a;
    color: #ff8888;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.15s ease;
}

.boss-strike-btn:hover {
    background: #ff2a2a;
    color: #fff;
    box-shadow: 0 0 10px #ff2a2a;
}

/* Floating Combat Text (+15 SANITY, -50,000 HP) */
.floating-combat-text {
    position: fixed;
    z-index: 100001;
    font-size: 1rem;
    font-weight: 900;
    pointer-events: none;
    animation: float-up-fade 1.2s forwards ease-out;
    letter-spacing: 0.08em;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

@keyframes float-up-fade {
    0% {
        opacity: 1;
        transform: translateY(0px) scale(0.9);
    }
    50% {
        transform: translateY(-25px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1);
    }
}

/* Victory / Level Clear Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 12, 0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.victory-card {
    background: linear-gradient(135deg, #161622, #0d0d16);
    border: 2px solid #ffd700;
    border-radius: 12px;
    max-width: 580px;
    width: 100%;
    padding: 28px;
    text-align: center;
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.4);
}

.victory-card h2 {
    color: #ffd700;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.victory-card p {
    color: #d0d0e0;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.victory-stats {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.85rem;
    color: #aaa;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.victory-stats span.val {
    color: #00ffcc;
    font-weight: bold;
    float: right;
}

.victory-btn {
    background: linear-gradient(135deg, #ffd700, #ff9900);
    color: #111;
    border: 2px solid #fff;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin: 4px;
    transition: all 0.2s ease;
}

.victory-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.9);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
