/* Core Cyberpunk/Synthwave CSS Reset & Variables */
:root {
    --bg-dark: #070710;
    
    /* Neon Colors (Unshifted defaults, will be overridden dynamically by app.js based on levels) */
    --glow-color: 0, 0%, 100%; /* HSL values for white/silver level 1-3 */
    --glow-hex: #ffffff;
    
    --white-neon: 0, 0%, 100%;
    --blue-neon: 185, 100%, 50%;
    --purple-neon: 280, 100%, 60%;
    --red-neon: 15, 100%, 50%;
    
    /* Font families */
    --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none; /* Disables double-tap zoom for responsive mobile play */
}

body {
    background: radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.12) 0%, rgba(7, 7, 16, 0.98) 55%),
                radial-gradient(circle at 85% 85%, rgba(255, 42, 42, 0.12) 0%, rgba(7, 7, 16, 0.98) 55%),
                #070710;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 500;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Ambient Background Nebula */
.nebula-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    max-width: 600px;
    max-height: 800px;
    background: radial-gradient(circle, hsla(var(--glow-color), 0.18) 0%, rgba(7, 7, 16, 0) 70%);
    z-index: 1;
    pointer-events: none;
    transition: background 1.2s ease-in-out;
}

/* Clean Dynamic Full-Screen Grid Background (Neon Red/Blue Cyberpunk) */
.retro-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 42, 42, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.055) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

/* Glassmorphism Panel styles */
.glass-panel {
    background: rgba(13, 13, 30, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5),
                0 0 15px 0 hsla(var(--glow-color), 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    transition: box-shadow 0.8s ease-in-out, border 0.8s ease-in-out;
}

/* Title Screen Styling */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 10, 0.85);
    padding: 15px;
}

.mode-select-container {
    width: 100%;
    max-width: 480px;
    padding: 60px 40px 40px;
    text-align: center;
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7),
                0 0 25px rgba(0, 240, 255, 0.15),
                inset 0 0 20px rgba(255, 0, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Neon glow bar animation at top of container */
.mode-select-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00f0ff, #ff00ff, #00f0ff, transparent);
    background-size: 200% 100%;
    animation: neonGlowBar 4s linear infinite;
}

@keyframes neonGlowBar {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.title-main {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 20%, #00f0ff 60%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.35));
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: #8fa0dd;
    letter-spacing: 3.5px;
    margin-bottom: 45px;
    text-shadow: 0 0 4px rgba(143, 160, 221, 0.35);
    text-transform: uppercase;
}

.selection-box h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #a3b3cc;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.selection-box h3::before, .selection-box h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(143, 160, 221, 0.25), transparent);
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.btn-mode {
    background: rgba(14, 14, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 18px 24px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Shimmer scanline effect on hover */
.btn-mode::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
}

.btn-mode:hover::after {
    left: 150%;
    transition: left 0.75s ease-in-out;
}

/* Campaign vs Endless neon styling overrides */
#btnCampaignMode {
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.05);
}

#btnCampaignMode:hover, #btnCampaignMode:focus {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

#btnCampaignMode .sector-name {
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

#btnNewSaga, #btnResumeSaga {
    border-color: rgba(255, 0, 255, 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 0, 255, 0.05);
}

#btnNewSaga:hover, #btnNewSaga:focus, #btnResumeSaga:hover, #btnResumeSaga:focus {
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.12);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4), inset 0 0 15px rgba(255, 0, 255, 0.15);
    transform: translateY(-2px);
}

#btnNewSaga .sector-name, #btnResumeSaga .sector-name {
    color: #ff00ff;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

.sector-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.sector-desc {
    font-size: 0.8rem;
    color: #8fa0dd;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.youtube-notice {
    font-size: 0.72rem;
    color: #8fa0dd;
    letter-spacing: 1.5px;
    margin-top: 25px;
    text-transform: uppercase;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-block;
    opacity: 0.85;
}

/* Primary Game Layout */
.game-container {
    width: 100%;
    max-width: 440px;
    height: 100vh;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hidden {
    display: none !important;
}

/* Stat Header Panel */
.header-stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.2fr;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-color: hsla(var(--glow-color), 0.2);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box:last-child {
    border-right: none;
}

.stat-label {
    font-size: 0.8rem;
    color: #8c9dc3;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

/* Grid Wrapper & Canvas sizing */
.grid-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 8px;
    overflow: hidden;
}

#gameCanvas {
    background: rgba(5, 5, 12, 0.85);
    border: 2px solid hsla(var(--glow-color), 0.5);
    box-shadow: 0 0 20px hsla(var(--glow-color), 0.3);
    border-radius: 8px;
    max-height: 100%;
    max-width: 100%;
    transition: border 0.8s, box-shadow 0.8s;
}

/* In-Game Overlays (Pause, Game Over, Level Clear) */
.canvas-overlay {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(4, 4, 10, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    z-index: 20;
    text-align: center;
}

.overlay-content {
    padding: 30px 25px;
}

.overlay-content h2 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.overlay-content p {
    font-size: 1.05rem;
    color: #b6c2dd;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Action button inside overlay */
.btn-primary {
    background: transparent;
    border: 2px solid hsla(var(--glow-color), 0.6);
    box-shadow: 0 0 10px hsla(var(--glow-color), 0.3);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: hsla(var(--glow-color), 0.15);
    box-shadow: 0 0 20px hsla(var(--glow-color), 0.6);
}

/* Unified One-Handed Gamepad Deck */
.gamepad-deck {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Let clicks pass through default spaces */
}

.onehand-controller {
    position: relative;
    width: 160px;
    height: 160px;
    pointer-events: none; /* Let clicks pass through layout gaps */
}

/* Circular Glowing Ball-Style Gamepad Buttons */
.btn-gamepad {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(15, 15, 35, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5),
                inset 0 0 10px rgba(0, 0, 0, 0.4);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto; /* Buttons handle clicks */
}

/* Responsive neon glow hover/active states */
.btn-gamepad:hover, .btn-gamepad:active, .btn-gamepad.active {
    background: hsla(var(--glow-color), 0.15);
    border-color: hsla(var(--glow-color), 0.85);
    box-shadow: 0 0 15px hsla(var(--glow-color), 0.6),
                inset 0 0 12px hsla(var(--glow-color), 0.2);
    transform: scale(0.92);
}

/* Button Positioning inside D-pad layout */
.btn-rotate {
    left: 54px;
    top: 0;
    font-size: 1.35rem;
}

.btn-left {
    left: 0;
    top: 54px;
}

.btn-harddrop {
    left: 54px;
    top: 54px;
    background: rgba(125, 249, 255, 0.12);
    border-color: rgba(125, 249, 255, 0.3);
    font-size: 1.15rem;
    color: #7df9ff;
    text-shadow: 0 0 8px rgba(125, 249, 255, 0.6);
}

.btn-harddrop:hover, .btn-harddrop:active, .btn-harddrop.active {
    background: rgba(125, 249, 255, 0.25);
    border-color: #7df9ff;
    box-shadow: 0 0 15px rgba(125, 249, 255, 0.7),
                inset 0 0 12px rgba(125, 249, 255, 0.25);
}

.btn-right {
    right: 0;
    top: 54px;
}

.btn-down {
    left: 54px;
    bottom: 0;
}

/* Floating Controls (Pause & Audio) */
.btn-floating {
    position: absolute;
    top: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 15, 35, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 18;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5),
                0 0 10px hsla(var(--glow-color), 0.15);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.btn-floating-sound {
    left: 10px;
}

.btn-floating-pause {
    right: 10px;
}

.btn-floating:hover, .btn-floating:active {
    background: rgba(255, 255, 255, 0.15);
    border-color: hsla(var(--glow-color), 0.85);
    box-shadow: 0 0 15px hsla(var(--glow-color), 0.6);
    transform: scale(1.1);
}

/* Overlay Navigation Menus */
.overlay-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
    width: 230px;
    margin-left: auto;
    margin-right: auto;
}

.btn-menu-item {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-align: center;
    background: rgba(15, 15, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.btn-menu-item:hover, .btn-menu-item:active {
    background: hsla(var(--glow-color), 0.18);
    border-color: hsla(var(--glow-color), 0.85);
    box-shadow: 0 0 15px hsla(var(--glow-color), 0.5);
}

.btn-menu-item.btn-exit {
    border-color: rgba(255, 255, 255, 0.25);
    color: #acb9d5;
}

.btn-menu-item.btn-exit:hover, .btn-menu-item.btn-exit:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
}

/* Glowing text helpers */
.glow-text-white {
    color: #fff;
    text-shadow: 0 0 8px #fff, 0 0 15px hsla(var(--white-neon), 0.6);
}

.glow-text-blue {
    color: #7df9ff;
    text-shadow: 0 0 8px #00f0ff, 0 0 15px hsla(var(--blue-neon), 0.6);
}

.glow-text-red {
    color: #ff3333;
    text-shadow: 0 0 8px #ff0000, 0 0 15px hsla(var(--red-neon), 0.6);
}

.glow-text-green {
    color: #39ff14;
    text-shadow: 0 0 8px #39ff14, 0 0 15px hsla(110, 100%, 50%, 0.6);
}

/* Screen shake animation class (applied to grid canvas) */
@keyframes shake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-3px, 2px); }
    20% { transform: translate(3px, -2px); }
    30% { transform: translate(-2px, -3px); }
    40% { transform: translate(2px, 3px); }
    50% { transform: translate(-1px, 2px); }
    60% { transform: translate(3px, 1px); }
    70% { transform: translate(-2px, -1px); }
    80% { transform: translate(2px, -2px); }
    90% { transform: translate(-1px, 3px); }
    100% { transform: translate(0, 0); }
}

.shake-grid {
    animation: shake 0.35s cubic-bezier(.36,.07,.19,.97) both;
}

/* Level clear animation */
@keyframes pulseClear {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.animated-clear {
    animation: pulseClear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.unlock-desc {
    font-size: 0.9rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    color: #39ff14 !important;
    margin-top: 10px;
    font-weight: 700;
}

/* Responsive screen adaptation constraints */
@media (max-height: 600px) {
    .header-stats {
        padding: 5px 10px;
        margin-bottom: 4px;
    }
    .stat-value {
        font-size: 1.1rem;
    }
    .game-container {
        padding: 5px;
    }
    .btn-floating {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .onehand-controller {
        width: 130px;
        height: 130px;
    }
    .btn-gamepad {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .btn-rotate {
        left: 44px;
        top: 0;
    }
    .btn-left {
        left: 0;
        top: 44px;
    }
    .btn-harddrop {
        left: 44px;
        top: 44px;
    }
    .btn-right {
        right: 0;
        top: 44px;
    }
    .btn-down {
        left: 44px;
        bottom: 0;
    }
}

/* Landscape mode with constrained height to prevent vertical scrolling/overflow */
@media (orientation: landscape) and (max-height: 480px) {
    .mode-select-container {
        padding: 20px 24px 20px;
    }
    .title-main {
        font-size: 2rem;
        margin-bottom: 6px;
    }
    .subtitle {
        margin-bottom: 15px;
    }
    .selection-box h3 {
        margin-bottom: 12px;
    }
    .mode-options {
        gap: 10px;
        margin-bottom: 15px;
    }
    .btn-mode {
        padding: 10px 16px;
    }
    .youtube-notice {
        margin-top: 10px;
        padding: 4px 12px;
    }
    .overlay {
        align-items: flex-start;
        overflow-y: auto;
    }
}

/* Landscape mode: Mobile or desktop landscape layout */
@media (orientation: landscape) {
    .game-container {
        max-width: 100%;
        padding: 5px 24px;
    }
    
    .header-stats {
        max-width: 600px;
        margin-bottom: 2px;
        padding: 4px 12px;
    }
    
    .grid-wrapper {
        margin-bottom: 0;
        width: 100%;
    }
    
    .gamepad-deck {
        bottom: 12px;
        left: 24px;
        right: 24px;
        width: auto;
    }
    
    .onehand-controller {
        width: 100%;
        height: 110px;
    }
    
    .btn-gamepad {
        width: 52px;
        height: 52px;
        font-size: 1.15rem;
    }
    
    /* Left side controls: Left and Right, with Hard Drop (blast down) directly on top */
    .btn-left {
        left: 0;
        bottom: 0;
        top: auto;
    }
    
    .btn-right {
        left: 58px;
        bottom: 0;
        top: auto;
        right: auto;
    }
    
    .btn-harddrop {
        left: 29px;
        top: 0;
        background: rgba(125, 249, 255, 0.15);
        border-color: rgba(125, 249, 255, 0.45);
        color: #7df9ff;
        text-shadow: 0 0 10px rgba(125, 249, 255, 0.85);
    }
    
    /* Right side controls: Rotate and Soft Drop */
    .btn-down {
        right: 58px;
        bottom: 0;
        left: auto;
        top: auto;
    }
    
    .btn-rotate {
        right: 0;
        bottom: 0;
        left: auto;
        top: auto;
    }
}

/* Floating Hacks Button position */
.btn-floating-hacks {
    right: 52px;
    background: rgba(255, 159, 0, 0.1) !important;
    border-color: rgba(255, 159, 0, 0.3) !important;
}
.btn-floating-hacks:hover {
    background: rgba(255, 159, 0, 0.25) !important;
    border-color: #ff9f00 !important;
    box-shadow: 0 0 15px rgba(255, 159, 0, 0.5) !important;
}

/* Campaign Level Selection Screen */
.level-select-container {
    width: 95%;
    max-width: 440px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 25px;
    width: 100%;
}

.btn-level {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(15, 15, 35, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.btn-level.locked {
    background: rgba(10, 10, 20, 0.45);
    border-color: rgba(255, 255, 255, 0.05);
    color: #5d6785;
    cursor: not-allowed;
}

.btn-level.unlocked {
    border-color: hsla(var(--glow-color), 0.4);
    box-shadow: 0 0 8px hsla(var(--glow-color), 0.15);
}

.btn-level.unlocked:hover {
    background: hsla(var(--glow-color), 0.15);
    border-color: hsla(var(--glow-color), 0.95);
    box-shadow: 0 0 15px hsla(var(--glow-color), 0.45);
    transform: translateY(-2px);
}

.btn-level.completed {
    border-color: #39ff14 !important;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.25) !important;
}

.level-lock-badge {
    font-size: 0.65rem;
    margin-top: 2px;
    opacity: 0.6;
}

.level-star-badge {
    color: #39ff14;
    font-size: 0.6rem;
    margin-top: 2px;
}

/* Simulated Ad Container */
.ad-container {
    width: 95%;
    max-width: 440px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(8, 8, 20, 0.95) !important;
    border: 2px solid #39ff14 !important;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.3) !important;
}

.ad-glitch-static {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
    z-index: 1;
}

.ad-video-mock {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px 15px;
    margin: 20px 0;
    position: relative;
}

.ad-brand {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #39ff14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.6);
}

.ad-tagline {
    font-size: 0.8rem;
    color: #8fa0dd;
    margin-top: 5px;
    margin-bottom: 20px;
}

.ad-loader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.ad-loader-fill {
    width: 0%;
    height: 100%;
    background: #39ff14;
    box-shadow: 0 0 8px #39ff14;
    animation: adFill 5s linear forwards;
}

@keyframes adFill {
    to { width: 100%; }
}

/* Hack Button Details */
.btn-hack {
    height: auto !important;
    text-align: center;
    border-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.btn-hack:hover {
    transform: scale(1.02);
}

/* Adjust landscape floating sound and hacks */
@media (orientation: landscape) {
    .btn-floating-hacks {
        right: 52px;
    }
}
