/* Cyberpunk Portfolio Styles */
:root {
    --primary-cyan: #00ff7a; /* Cambiado a verde Edgerunners */
    --primary-pink: #ff2bd6;
    --secondary-green: #00e5ff;
    --secondary-purple: #8b5cf6;
    --primary-yellow: #fcee0a; /* David Martinez Yellow */
    --dark-bg: #050611;
    --darker-bg: #0a0a0a; /* Un negro mas puro para contraste Edgerunners */
    --light-gray: #333333;
    --text-light: #ffffff;
    --text-muted: #f0f0f0; /* M�s claro para legibilidad */
    --border-glow: #00ff7a;
    --shadow-glow: 0 0 20px rgba(0, 255, 122, 0.5);
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Rajdhani', sans-serif;
}

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

body {
    font-family: var(--font-secondary);
    background: var(--darker-bg);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    /* Textura de ruido tipo cinta VHS vieja */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
}

/* Matrix Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Colores base: Negro profundo con flashes amarillos */
    background: 
        radial-gradient(circle at 50% 50%, rgba(252, 238, 10, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(255, 43, 214, 0.05) 0%, transparent 40%),
        var(--darker-bg);
    overflow: hidden;
    opacity: 1;
}

/* Optimizaci�n: Si el dispositivo es lento, quitamos los efectos de escaneo pesados */
.performance-low #matrix-bg::after {
    display: none;
}

.performance-low #matrix-bg::before {
    animation: none; /* Quitamos la animaci�n de scroll de la rejilla */
    opacity: 0.2;
}

.performance-low * {
    text-shadow: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* Scanline & Noise Overlay - Edgerunners Style */
#matrix-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0px, rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 2px);
    background-size: 100% 2px;
    pointer-events: none;
    z-index: 10;
}

#matrix-bg::before {
    content: 'SYSTEM OVERRIDE SYSTEM OVERRIDE';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%) rotate(-15deg);
    /* Rayas de advertencia animadas */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(252, 238, 10, 0.05) 0px,
        rgba(252, 238, 10, 0.05) 40px,
        transparent 40px,
        transparent 80px
    );
    /* Texto gigante hueco de fondo */
    font-family: var(--font-primary);
    font-size: 20vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(252, 238, 10, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    pointer-events: none;
    animation: cautionScroll 20s linear infinite;
}

@keyframes cautionScroll {
    0% { background-position: 0 0; }
    100% { background-position: 500px 500px; }
}

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.cyber-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--darker-bg);
    border-bottom: 4px solid var(--primary-yellow);
    z-index: 1000;
    box-shadow: 0 4px 0 var(--primary-pink);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    flex-shrink: 0;
    font-family: var(--font-primary);
    font-weight: 900;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    max-width: 100%;
    overflow-x: auto;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px var(--primary-cyan));
    animation: logoPulse 4s infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 5px var(--primary-cyan)); }
    50% { filter: drop-shadow(0 0 15px var(--primary-pink)); }
}

.logo-text {
    font-size: 2rem;
    color: var(--primary-cyan);
    text-shadow: 2px 2px 0 var(--darker-bg);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    gap: 0.4rem;
}

.nav-btn {
    background: var(--primary-yellow);
    border: none;
    color: var(--darker-bg);
    padding: 0.55rem 0.9rem;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 0.75rem;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease, box-shadow 0.15s ease;
    margin: 2px;
    box-shadow: 4px 4px 0px var(--primary-pink);
    will-change: transform;
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--primary-pink);
    color: var(--text-light);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--primary-cyan);
}

.nav-btn.active {
    background: var(--primary-cyan);
    color: var(--darker-bg);
    box-shadow: 4px 4px 0px var(--primary-yellow);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px var(--primary-cyan);
}

.nav-btn--hidden,
.nav-btn[hidden] {
    display: none !important;
}

.nav-btn--revealed {
    background: linear-gradient(90deg, #ff2bd6, #7b2bff);
    color: #fff;
    box-shadow: 4px 4px 0px var(--primary-cyan);
    animation: forbiddenReveal 0.6s ease;
}

/* Responsive navigation */
@media (max-width: 1000px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    .nav-menu {
        gap: 0.35rem;
    }
    .nav-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.7rem;
        margin: 1px;
    }
}

@media (max-width: 700px) {
    .cyber-nav {
        height: auto;
        padding-bottom: 0.5rem;
    }
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 0.75rem 0.5rem;
    }
    .nav-menu {
        justify-content: center;
        width: 100%;
        order: 2;
        margin-top: 0.5rem;
    }
    .logo {
        order: 1;
    }
    .nav-btn {
        padding: 0.45rem 0.6rem;
        font-size: 0.65rem;
        margin: 1px;
    }
    .nav-menu {
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .nav-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.6rem;
        margin: 1px;
    }
}

@keyframes forbiddenReveal {
    0% { transform: scale(0.6); opacity: 0; filter: hue-rotate(90deg); }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

/* DEPOOL secret CMD */
.depool-secret-cmd {
    max-width: 420px;
    margin: 1.1rem auto 0;
    background: rgba(0, 0, 0, 0.88);
    border: 1px solid rgba(0, 255, 122, 0.4);
    box-shadow: 0 0 18px rgba(0, 255, 122, 0.18), inset 0 0 24px rgba(0, 255, 122, 0.06);
    font-family: 'Courier New', monospace;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.depool-secret-cmd.flash {
    animation: secretFlash 0.9s ease;
    border-color: var(--primary-pink);
}

.depool-secret-cmd.shake { animation: secretShake 0.35s ease; }

@keyframes secretFlash {
    0%, 100% { box-shadow: 0 0 18px rgba(0,255,122,0.18); }
    50% { box-shadow: 0 0 34px rgba(255,43,214,0.55); }
}

@keyframes secretShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.depool-secret-cmd-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.65rem;
    background: rgba(0, 255, 122, 0.14);
    color: var(--primary-cyan);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
}

.depool-secret-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff7a;
    box-shadow: 0 0 8px #00ff7a;
    animation: blink 1.1s infinite;
}

.depool-secret-id { margin-left: auto; opacity: 0.7; }

.depool-secret-log {
    max-height: 120px;
    overflow-y: auto;
    padding: 0.55rem 0.65rem;
    font-size: 0.74rem;
    color: #b8ffd9;
}

.depool-secret-line { margin-bottom: 0.3rem; word-break: break-word; }
.depool-secret-line .ok { color: #00ff7a; font-weight: bold; }
.depool-secret-line .err { color: #ff5d7a; }
.depool-secret-line .warn { color: var(--primary-yellow); }

.depool-secret-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
    border-top: 1px solid rgba(0, 255, 122, 0.25);
}

.depool-secret-row .prompt { color: var(--primary-pink); font-size: 0.8rem; }

.depool-secret-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #00ff7a;
    font-family: inherit;
    font-size: 0.82rem;
}

.depool-secret-btn {
    background: var(--primary-cyan);
    border: none;
    color: #000;
    font-family: var(--font-primary);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
}

@media (max-width: 480px) {
    .depool-secret-cmd { max-width: 100%; }
}




.hidden { display: none !important; }


.btn-glitch {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover .btn-glitch {
    left: 100%;
}

.submit-btn:hover .btn-glitch {
    left: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(0, 229, 255, 0.1);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-cyan);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.section {
    display: none;
    min-height: calc(100vh - 80px);
    padding: 3.25rem 0;
}

.section.active {
    display: block;
    animation: sectionIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes sectionIn {
    /* Efecto de parpadeo r�pido tipo glitch al entrar */
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Intersection Observer Support */
.panel, .card, .stat, .hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-content {
    text-align: center;
    padding: 6rem 0;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-logo-img {
    width: min(160px, 45vw);
    height: auto;
    filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.35));
    animation: floatLogo 4s ease-in-out infinite;
}

.cyber-title {
    font-family: var(--font-primary);
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-yellow), var(--primary-cyan), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 0px var(--darker-bg);
    margin-bottom: 1rem;
    will-change: transform;
}

.title-sub {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-cyan);
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    border: 2px solid rgba(0, 229, 255, 0.55);
    background: rgba(0, 229, 255, 0.06);
    clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
    transition: none; /* Quitamos transici�n para performance */
}

.stat:hover {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--darker-bg);
}

.stat:hover .stat-number {
    color: var(--darker-bg);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-primary);
    font-weight: 900;
    color: var(--primary-pink);
    text-shadow: 2px 2px 0px var(--darker-bg);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* Sections */
.section-header {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.25rem 1.1rem;
    border: 1px solid rgba(0, 255, 255, 0.25);
    background: rgba(0, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.12), transparent);
    transform: translateX(-100%);
    animation: scan 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

.section-title {
    font-family: var(--font-primary);
    letter-spacing: 3px;
    color: var(--primary-cyan);
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
    position: relative;
    z-index: 1;
}

.section-subtitle {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.section-body {
    padding: 0.5rem 0 0;
}

/* Layout + Panels */
.layout-grid {
    display: grid;
    gap: 1.5rem;
    content-visibility: auto;
    contain: layout style paint;
}

.layout-grid--2 {
    grid-template-columns: 1.2fr 0.8fr;
}

.layout-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
    border: 2px solid rgba(0, 255, 255, 0.4);
    background: rgba(2, 3, 10, 0.92);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
    content-visibility: auto;
    contain: layout style paint;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.panel--glass {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 255, 255, 0.06) 100%);
    box-shadow:
        0 0 38px rgba(0, 255, 255, 0.12),
        inset 0 0 30px rgba(0, 255, 255, 0.08);
}

/* Edgerunner Style Panel */
.panel--edgerunner {
    border: 3px solid var(--primary-yellow);
    background: rgba(5, 6, 17, 0.95);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    box-shadow: 6px 6px 0 var(--primary-pink);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.panel--edgerunner:hover {
    transform: scale(1.01);
}

.panel--edgerunner .panel-title {
    background: var(--primary-yellow);
    color: var(--darker-bg);
    padding: 0.2rem 1rem;
    display: inline-block;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    margin-bottom: 1.5rem;
}

.panel--scan::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.08), transparent);
    transform: translateY(-100%);
    animation: scanY 7s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.panel--scan > * {
    position: relative;
    z-index: 1;
}

@keyframes scanY {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.panel--yellow-border {
    border-color: var(--primary-yellow);
    box-shadow: 4px 4px 0 var(--primary-cyan);
}

.panel-title {
    font-family: var(--font-primary);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--primary-pink);
    text-shadow: 0 0 14px rgba(255, 43, 214, 0.22);
    position: relative;
}

.muted {
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.45), transparent);
    margin: 1.25rem 0;
    position: relative;
}

/* About */
.about-head {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.avatar-ring {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-cyan), var(--primary-pink), var(--primary-cyan), var(--primary-pink), var(--primary-cyan));
    padding: 3px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
    flex: 0 0 auto;
}

.avatar-ring .avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    object-fit: cover;
    display: block;
}

.neo-title {
    font-family: var(--font-primary);
    letter-spacing: 2px;
}

.neo-subtitle {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pill {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(0, 255, 255, 0.35);
    background: rgba(0, 255, 255, 0.08);
    color: var(--primary-cyan);
}

.pill--pink {
    border-color: rgba(255, 43, 214, 0.6);
    background: rgba(255, 43, 214, 0.08);
    color: var(--primary-pink);
}

.pill--green {
    border-color: rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.08);
    color: var(--primary-cyan);
}

.pill--purple {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary-purple);
}

.lead {
    color: var(--text-muted);
    line-height: 1.75;
    margin: 1rem 0 1.25rem;
    position: relative;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
    position: relative;
}

.kpi {
    border: 1px solid rgba(0, 255, 255, 0.22);
    background: rgba(0, 255, 255, 0.05);
    padding: 0.9rem;
    text-align: center;
}

.kpi-number {
    display: block;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-cyan);
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.kpi-label {
    display: block;
    margin-top: 0.25rem;
    font-family: var(--font-primary);
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    position: relative;
}

.cta-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.1rem;
    font-family: var(--font-primary);
    letter-spacing: 2px;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    background: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    will-change: transform;
}

.cta-btn--primary {
    background: var(--primary-cyan);
    color: var(--dark-bg);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.cta-btn--ghost:hover {
    background: rgba(0, 255, 255, 0.1);
}

.scan-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
}

.scan-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-cyan);
    display: inline-block;
    margin-right: 0.6rem;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}

/* Apps */
.nav-btn:focus-visible,
.app-download-btn:focus-visible,
.cta-btn:focus-visible,
.contact-card:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid var(--primary-pink);
    outline-offset: 3px;
}

.app-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.9rem 1rem;
    border: 2px solid var(--primary-cyan);
    color: var(--dark-bg);
    background: var(--primary-cyan);
    font-family: var(--font-primary);
    letter-spacing: 2px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    will-change: transform;
}

.app-download-btn--sm {
    padding: 0.7rem 0.9rem;
    letter-spacing: 1.5px;
}

.app-download-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    box-shadow: 0 4px 15px rgba(255, 43, 214, 0.2);
}

.app-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.app-tile-head {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.app-tile-icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.35);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.app-tile-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.app-tile-sub {
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.app-tile-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.app-note-inline {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Cards (Projects) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    content-visibility: auto;
    contain: layout style paint;
}

.card-grid--apps {
    grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
    justify-content: center;
    content-visibility: auto;
    contain: layout style paint;
}

.app-tile .card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.app-tile .tag-row {
    margin-bottom: 0.75rem;
}

.app-note-inline {
    max-width: 440px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.card {
    border: 2px solid rgba(0, 255, 255, 0.4);
    background: rgba(0, 255, 255, 0.04);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
    content-visibility: auto;
    contain: layout style paint;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Edgerunner Card */
.card--edgerunner {
    border: 2px solid var(--primary-yellow);
    background: rgba(10, 10, 20, 0.9);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    box-shadow: 4px 4px 0 var(--primary-pink);
}

.card--edgerunner:hover {
    border-color: var(--primary-cyan);
    box-shadow: 6px 6px 0 var(--primary-yellow);
    transform: translate(-2px, -2px);
}

.card--edgerunner .card-title {
    color: var(--primary-yellow);
    font-weight: 900;
    text-transform: uppercase;
}

.card--rgb::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(
        from 180deg,
        rgba(0, 229, 255, 0.0),
        rgba(0, 229, 255, 0.8),
        rgba(255, 43, 214, 0.8),
        rgba(0, 255, 122, 0.75),
        rgba(0, 229, 255, 0.0)
    );
    filter: blur(10px);
    opacity: 0.55;
    z-index: 0;
    animation: rgbSpin 6s linear infinite;
    pointer-events: none;
    will-change: transform;
}

.card--rgb::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(45deg, rgba(255, 43, 214, 0.15), rgba(139, 92, 246, 0.15));
    z-index: 0;
    pointer-events: none;
}

.card--rgb > * {
    position: relative;
    z-index: 1;
}

@keyframes rgbSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.card--hover {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card--hover:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.7);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.9rem;
    font-family: var(--font-primary);
    letter-spacing: 2px;
    border: 2px solid rgba(0, 229, 255, 0.7);
    color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.08);
    cursor: pointer;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    will-change: transform;
}

.card-action:hover {
    transform: translateY(-2px);
    background: rgba(255, 43, 214, 0.1);
    border-color: rgba(255, 43, 214, 0.75);
    box-shadow: 0 4px 15px rgba(255, 43, 214, 0.15);
}

/* Project View */
.project-view-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.project-view-panel {
    padding: 1.25rem;
}

.project-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.project-link-card {
    text-decoration: none;
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.06);
    padding: 0.9rem 0.95rem;
    display: grid;
    gap: 0.35rem;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

.project-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.75);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.14);
}

.project-link-label {
    font-family: var(--font-primary);
    letter-spacing: 2px;
    color: var(--primary-pink);
}

.project-link-url {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.card-title {
    font-family: var(--font-primary);
    letter-spacing: 1px;
    font-size: 1.05rem;
}

.card-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.badge {
    font-family: var(--font-primary);
    letter-spacing: 1px;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(0, 255, 255, 0.45);
    color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.08);
    white-space: nowrap;
}

.badge--cyan {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-cyan);
}

.badge--green {
    border-color: rgba(0, 255, 122, 0.55);
    color: var(--secondary-green);
    background: rgba(0, 255, 122, 0.08);
}

.badge--pink {
    border-color: rgba(255, 43, 214, 0.7);
    color: var(--primary-pink);
    background: rgba(255, 43, 214, 0.08);
}

.badge--purple {
    border-color: rgba(139, 92, 246, 0.55);
    color: var(--secondary-purple);
    background: rgba(139, 92, 246, 0.1);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-family: var(--font-primary);
    letter-spacing: 1px;
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-light);
}

.meter {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.meter-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-cyan));
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.25);
}

/* Skills */
.skill {
    margin-top: 1rem;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-pct {
    font-family: var(--font-primary);
    color: var(--primary-cyan);
}

/* Contact */
.contact-cards {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
    position: relative;
}

.contact-card {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.5rem;
    border: 1px solid rgba(0, 255, 255, 0.22);
    background: rgba(0, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    color: var(--text-light);
}

.contact-card:hover {
    transform: translateX(6px);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.14);
}

.contact-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.35);
    color: var(--primary-cyan);
    font-size: 1rem;
    flex: 0 0 auto;
}

.contact-label {
    display: block;
    font-family: var(--font-primary);
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--primary-cyan);
}

.contact-value {
    display: block;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.availability {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(0, 229, 255, 0.5);
    background: rgba(0, 229, 255, 0.06);
    font-family: var(--font-primary);
    letter-spacing: 1px;
    position: relative;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-pink);
    box-shadow: 0 0 16px rgba(255, 43, 214, 0.35);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-submit-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.form-group label {
    display: block;
    font-family: var(--font-primary);
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 0.9rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 255, 255, 0.25);
    color: var(--text-light);
    font-family: var(--font-secondary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 43, 214, 0.65);
    box-shadow: 0 0 18px rgba(255, 43, 214, 0.18);
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 43, 214, 0.8);
    background: rgba(255, 43, 214, 0.86);
    color: var(--text-light);
    font-family: var(--font-primary);
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    will-change: transform;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: rgba(139, 92, 246, 0.95);
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.submit-btn--whatsapp {
    border-color: rgba(37, 211, 102, 0.8);
    background: rgba(37, 211, 102, 0.16);
}

.submit-btn--whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.28);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.18);
}

.submit-btn--gmail {
    border-color: rgba(0, 229, 255, 0.68);
    background: rgba(0, 229, 255, 0.12);
}

.submit-btn--gmail:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.24);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.18);
}

.submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-muted);
    font-family: var(--font-primary);
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Terminal */
.cyber-terminal {
    position: fixed;
    bottom: 14px;
    right: 14px;
    width: 320px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(0, 229, 255, 0.75);
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.22);
    z-index: 1500;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.75rem;
    background: var(--primary-cyan);
    color: var(--dark-bg);
    font-weight: bold;
    font-size: 0.85rem;
}

.terminal-toggle {
    background: none;
    border: none;
    color: var(--dark-bg);
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: bold;
}

.terminal-body {
    padding: 0.75rem;
    height: 140px;
    overflow-y: auto;
}

.terminal-line {
    color: var(--primary-cyan);
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--primary-pink);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Footer */
.cyber-footer {
    background: var(--primary-yellow);
    border-top: 5px solid var(--darker-bg);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    color: var(--darker-bg);
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h3 {
    font-family: var(--font-primary);
    color: var(--darker-bg);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--darker-bg);
    display: inline-block;
}

.footer-section p {
    color: var(--darker-bg);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--darker-bg);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border: 2px solid var(--darker-bg);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 900;
}

.social-link:hover {
    background: var(--primary-pink);
    color: var(--dark-bg);
    border-color: rgba(255, 43, 214, 0.85);
    box-shadow: 0 0 22px rgba(255, 43, 214, 0.25);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--darker-bg);
    color: var(--darker-bg);
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch:before,
.glitch:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch:before {
    animation: glitchTop 1s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    transform: translate(-0.04em, -0.03em);
    opacity: 0.75;
    color: var(--primary-pink);
}

.glitch:after {
    animation: glitchBott 1.5s infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    transform: translate(0.04em, 0.03em);
    opacity: 0.75;
    color: var(--primary-cyan);
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitchTop {
    0%, 100% { transform: translate(-0.04em, -0.03em); }
    10% { transform: translate(0.04em, 0.03em); }
}

@keyframes glitchBott {
    0%, 100% { transform: translate(0.04em, 0.03em); }
    50% { transform: translate(-0.04em, -0.03em); }
}

/* NSFW Modal - Sistema de Seguridad Mejorado - Optimizado */
.nsfw-modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(2, 4, 12, 0.97);
    animation: nsfwModalBgIn 0.4s ease-out;
    will-change: opacity;
}

/* NSFW Modal Low Performance Mode */
.nsfw-modal.nsfw-low-performance,
.nsfw-low-performance .nsfw-modal-content {
    animation: none !important;
    backdrop-filter: none !important;
}

.nsfw-low-performance .nsfw-scanline,
.nsfw-low-performance .nsfw-grid-overlay {
    display: none;
}

.nsfw-low-performance .nsfw-system-dot,
.nsfw-low-performance .nsfw-status-dot,
.nsfw-low-performance .nsfw-title-lock,
.nsfw-low-performance .nsfw-icon-inner {
    animation: none !important;
}

.nsfw-low-performance .nsfw-modal-content {
    box-shadow: 0 0 20px rgba(255, 43, 214, 0.3) !important;
}

.nsfw-low-performance .nsfw-modal-content.nsfw-state--denied {
    animation: nsfwShake 0.5s ease-in-out !important;
}

/* Solo usar backdrop-filter en dispositivos potentes */
@media (min-width: 768px) and (min-resolution: 2dppx) {
    .nsfw-modal {
        backdrop-filter: blur(8px);
        background:
            radial-gradient(circle at 20% 20%, rgba(255, 43, 214, 0.15), transparent 40%),
            radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.1), transparent 40%),
            rgba(2, 4, 12, 0.95);
    }
}

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

.nsfw-modal-content {
    background:
        linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px),
        linear-gradient(145deg, rgba(5, 18, 28, 0.99), rgba(4, 7, 14, 0.99));
    background-size: 22px 22px, 22px 22px, auto;
    border: 1px solid rgba(0, 229, 255, 0.65);
    box-shadow:
        0 0 28px rgba(0, 229, 255, 0.18),
        inset 0 0 28px rgba(0, 229, 255, 0.04),
        0 15px 40px rgba(0, 0, 0, 0.8);
    padding: clamp(1.1rem, 3vw, 1.5rem);
    max-width: 430px;
    width: min(430px, 92%);
    position: relative;
    overflow: hidden;
    animation: nsfwModalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    clip-path: polygon(
        0 10px, 10px 0,
        calc(100% - 10px) 0, 100% 10px,
        100% calc(100% - 10px), calc(100% - 10px) 100%,
        10px 100%, 0 calc(100% - 10px)
    );
    will-change: transform, opacity;
}

/* Estados del modal - Optimizados */
.nsfw-modal-content.nsfw-state--denied {
    border-color: #ff0040;
    box-shadow: 0 0 28px rgba(255, 0, 64, 0.55), inset 0 0 18px rgba(255, 0, 64, 0.08);
    animation: nsfwShake 0.5s ease-in-out;
}

.nsfw-modal-content.nsfw-state--granted {
    border-color: #00ff7a;
    box-shadow: 0 0 40px rgba(0, 255, 122, 0.4);
}

@keyframes nsfwShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    18% { transform: translateX(-7px) rotate(-0.4deg); }
    36% { transform: translateX(6px) rotate(0.35deg); }
    54% { transform: translateX(-4px) rotate(-0.2deg); }
    72% { transform: translateX(3px) rotate(0.15deg); }
}

@keyframes nsfwModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Efectos de sistema - Optimizados */
.nsfw-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 43, 214, 0.02) 0,
        rgba(255, 43, 214, 0.02) 1px,
        transparent 1px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* Solo animar scanline en dispositivos potentes */
@media (min-width: 768px) {
    .nsfw-scanline {
        animation: nsfwScanlineMove 12s linear infinite;
    }
}

@keyframes nsfwScanlineMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.nsfw-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 43, 214, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 43, 214, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

/* Esquinas decorativas */
.nsfw-corner-decor {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 43, 214, 0.6);
    pointer-events: none;
    z-index: 2;
}

.nsfw-corner-tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.nsfw-corner-tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.nsfw-corner-bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.nsfw-corner-br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* Barra de sistema */
.nsfw-system-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.14), rgba(0, 255, 122, 0.06));
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    font-family: var(--font-secondary);
    font-size: 0.55rem;
    letter-spacing: 0.11em;
    z-index: 3;
}

.nsfw-system-dot {
    width: 8px;
    height: 8px;
    background: #ff2bd6;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff2bd6;
}

/* Solo animar pulse en dispositivos potentes */
@media (min-width: 768px) {
    .nsfw-system-dot {
        animation: nsfwSystemPulse 3s ease-in-out infinite;
    }
}

@keyframes nsfwSystemPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px #ff2bd6; }
    50% { opacity: 0.6; box-shadow: 0 0 4px #ff2bd6; }
}

.nsfw-system-text {
    color: rgba(255, 43, 214, 0.9);
}

.nsfw-system-id {
    color: rgba(255, 255, 255, 0.5);
}

.nsfw-system-id span {
    color: var(--primary-cyan);
    font-family: monospace;
}

.nsfw-close-btn {
    position: absolute;
    top: 30px;
    right: 0.7rem;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 43, 214, 0.5);
    background: rgba(9, 14, 24, 0.9);
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
}

.nsfw-close-btn:hover {
    transform: translateY(-2px) rotate(90deg);
    background: rgba(255, 43, 214, 0.2);
    box-shadow: 0 0 25px rgba(255, 43, 214, 0.4);
    border-color: var(--primary-pink);
}

.nsfw-badge-row {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin: 1.1rem 0 0.7rem;
}

.nsfw-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0.2rem 0.5rem;
    border: 1px solid;
    font-family: var(--font-secondary);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nsfw-badge--alert {
    color: var(--dark-bg);
    background: linear-gradient(90deg, #ff0040, #ff2bd6);
    border-color: #ff0040;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.5);
}

.nsfw-badge--ghost {
    color: #ff2bd6;
    background: rgba(255, 43, 214, 0.15);
    border-color: rgba(255, 43, 214, 0.4);
}

.nsfw-badge--secure {
    color: #00ff7a;
    background: rgba(0, 255, 122, 0.1);
    border-color: rgba(0, 255, 122, 0.3);
}

/* Eliminado - animaci�n innecesaria para rendimiento */

.nsfw-title {
    position: relative;
    z-index: 5;
    margin: 0.7rem 0 0.35rem;
    padding-right: 2.2rem;
    font-family: var(--font-primary);
    font-size: clamp(1.15rem, 4vw, 1.45rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    text-shadow: 0 0 25px rgba(255, 0, 64, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nsfw-title-lock {
    font-size: 0.8em;
    filter: drop-shadow(0 0 8px rgba(255, 0, 64, 0.6));
}

/* Solo animar lock en dispositivos potentes */
@media (min-width: 768px) {
    .nsfw-title-lock {
        animation: nsfwLockPulse 2s ease-in-out infinite;
    }
}

@keyframes nsfwLockPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nsfw-subtitle {
    position: relative;
    z-index: 5;
    margin: 0 0 0.9rem;
    max-width: 44ch;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.45;
    font-size: 0.78rem;
}

.nsfw-warning-panel {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 0.9rem;
    padding: 0.7rem;
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.045);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.nsfw-warning-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 193, 7, 0.7);
    background: rgba(255, 193, 7, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.nsfw-icon-inner {
    color: #ffc107;
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 900;
}

/* Solo animar icon pulse en dispositivos potentes */
@media (min-width: 768px) {
    .nsfw-icon-inner {
        animation: nsfwPulse 2s ease-in-out infinite;
    }
}

@keyframes nsfwPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nsfw-warning-copy strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nsfw-warning-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    font-size: 0.72rem;
}

.nsfw-input-shell {
    position: relative;
    z-index: 5;
}

.nsfw-input-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    color: var(--primary-cyan);
    font-family: var(--font-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.nsfw-label-icon {
    font-size: 0.9rem;
}

.nsfw-input-container {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.nsfw-password-input {
    min-height: 42px;
    padding: 0 0.8rem;
    border: 1px solid rgba(0, 229, 255, 0.35);
    background: rgba(10, 5, 15, 0.95);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nsfw-password-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
}

.nsfw-password-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.nsfw-password-input.nsfw-input--error {
    border-color: #ff0040;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.4);
    animation: nsfwInputShake 0.3s ease-in-out;
}

.nsfw-password-input.nsfw-input--success {
    border-color: #00ff7a;
    box-shadow: 0 0 15px rgba(0, 255, 122, 0.3);
}

@keyframes nsfwInputShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.nsfw-toggle-password-btn {
    min-height: 42px;
    border: 1px solid rgba(0, 229, 255, 0.35);
    background: rgba(10, 5, 15, 0.95);
    color: var(--text-light);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    display: grid;
    place-items: center;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nsfw-toggle-password-btn:hover {
    border-color: #ff2bd6;
    background: rgba(255, 43, 214, 0.15);
}

.nsfw-submit-btn {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(0, 255, 122, 0.65);
    background: linear-gradient(135deg, rgba(0, 255, 122, 0.14), rgba(0, 229, 255, 0.08));
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.nsfw-submit-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.4), rgba(255, 43, 214, 0.3));
    border-color: #ff2bd6;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.4);
    transform: translateY(-2px);
}

.nsfw-submit-btn:active {
    transform: translateY(1px);
}

.nsfw-btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nsfw-submit-btn:hover .nsfw-btn-icon {
    transform: translateX(5px);
}

/* Indicador de estado */
.nsfw-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.65rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.nsfw-status--waiting {
    background: rgba(255, 43, 214, 0.1);
    color: rgba(255, 43, 214, 0.9);
    border: 1px solid rgba(255, 43, 214, 0.3);
}

.nsfw-status--checking {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.nsfw-status--error {
    background: rgba(255, 0, 64, 0.1);
    color: #ff4080;
    border: 1px solid rgba(255, 0, 64, 0.3);
}

.nsfw-status--granted {
    background: rgba(0, 255, 122, 0.1);
    color: #00ff7a;
    border: 1px solid rgba(0, 255, 122, 0.3);
}

.nsfw-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Solo animar status pulse en dispositivos potentes */
@media (min-width: 768px) {
    .nsfw-status-dot {
        animation: nsfwStatusPulse 2s ease-in-out infinite;
    }
}

@keyframes nsfwStatusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.nsfw-error-message {
    position: relative;
    z-index: 5;
    min-height: 1.5rem;
    margin: 0.75rem 0 0;
    color: #ff0040;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 0 8px rgba(255, 0, 64, 0.6);
}

/* Overlay de �xito */
.nsfw-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nsfw-success-overlay.nsfw-success--visible {
    opacity: 1;
    pointer-events: all;
}

.nsfw-success-content {
    text-align: center;
    animation: nsfwSuccessIn 0.5s ease-out;
}

@keyframes nsfwSuccessIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.nsfw-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #00ff7a, #00e5ff);
    color: var(--dark-bg);
    font-size: 2.5rem;
    font-weight: 900;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: nsfwSuccessIcon 0.5s ease-out;
}

@keyframes nsfwSuccessIcon {
    0% { transform: scale(0) rotate(-180deg); }
    100% { transform: scale(1) rotate(0); }
}

.nsfw-success-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: #00ff7a;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(0, 255, 122, 0.5);
}

.nsfw-success-sub {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.forbidden-content-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    justify-content: center;
    align-items: stretch;
    padding: clamp(1rem, 3vw, 2rem);
    background:
        radial-gradient(circle at top, rgba(255, 43, 214, 0.18), transparent 45%),
        radial-gradient(circle at bottom, rgba(0, 229, 255, 0.18), transparent 40%),
        rgba(2, 6, 12, 0.86);
    backdrop-filter: blur(10px);
}

.forbidden-content-modal-content {
    position: relative;
    width: min(1180px, 100%);
    max-height: 100%;
    overflow: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(255, 43, 214, 0.45);
    background:
        linear-gradient(180deg, rgba(10, 16, 28, 0.96), rgba(4, 8, 16, 0.98));
    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.15) inset,
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 50px rgba(255, 43, 214, 0.18);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    animation: forbiddenModalIn 0.3s ease-out;
}

.forbidden-content-close-btn {
    position: sticky;
    top: 0;
    z-index: 5;
    margin-left: auto;
    margin-bottom: 1rem;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 43, 214, 0.55);
    background: rgba(10, 16, 28, 0.92);
    color: var(--text-light);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.forbidden-content-close-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 43, 214, 0.18);
    box-shadow: 0 0 18px rgba(255, 43, 214, 0.25);
}

#forbidden-content-body {
    display: grid;
    gap: 1.5rem;
}

#forbidden-content-body .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#forbidden-content-body .app-tile {
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 43, 214, 0.08), rgba(0, 229, 255, 0.04)),
        rgba(7, 12, 20, 0.96);
    border-color: rgba(255, 43, 214, 0.28);
}

.h-game-image-placeholder {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 1rem 0;
    border: 1px solid rgba(0, 229, 255, 0.22);
    background: rgba(255, 255, 255, 0.03);
}

.h-game-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes forbiddenModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes nsfwModalIn {
    from {
        transform: translateY(18px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes nsfwPulse {
    0%, 100% {
        box-shadow: 0 0 14px rgba(255, 43, 214, 0.12);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 24px rgba(255, 43, 214, 0.28);
        transform: scale(1.04);
    }
}

@keyframes nsfwSweep {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

/* DEPOOL Android Interface */
.depool-interface {
    position: relative;
    display: grid;
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
}

.depool-cover {
    position: relative;
    isolation: isolate;
    height: clamp(140px, 20vw, 220px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.42);
    background: #050a12;
    box-shadow:
        0 0 24px rgba(0, 229, 255, 0.12),
        inset 0 0 28px rgba(255, 43, 214, 0.1);
}

.depool-cover::before,
.depool-cover::after {
    position: absolute;
    z-index: 1;
    content: '';
    pointer-events: none;
}

.depool-cover::before {
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 5, 12, 0.12), transparent 34%, rgba(2, 5, 12, 0.74)),
        repeating-linear-gradient(0deg, transparent 0 4px, rgba(0, 229, 255, 0.035) 5px);
}

.depool-cover::after {
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    clip-path: polygon(0 0, 12% 0, 12% 2px, 2px 2px, 2px 12%, 0 12%, 0 88%, 2px 88%, 2px calc(100% - 2px), 12% calc(100% - 2px), 12% 100%, 0 100%, 0 0, 100% 0, 88% 0, 88% 2px, calc(100% - 2px) 2px, calc(100% - 2px) 12%, 100% 12%, 100% 88%, calc(100% - 2px) 88%, calc(100% - 2px) calc(100% - 2px), 88% calc(100% - 2px), 88% 100%, 100% 100%);
}

.depool-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.depool-cover-caption {
    position: absolute;
    z-index: 2;
    right: clamp(1.5rem, 4vw, 3rem);
    bottom: clamp(1.5rem, 4vw, 2.75rem);
    left: clamp(1.5rem, 4vw, 3rem);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    color: #e9fbff;
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    letter-spacing: 0.08em;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.85);
}

.depool-cover-index {
    color: rgba(0, 229, 255, 0.9);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .depool-cover {
        height: 240px;
    }

    .depool-cover::after {
        inset: 8px;
    }
}

.android-bay {
    position: relative;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top, rgba(0, 229, 255, 0.1), transparent 32%),
        radial-gradient(circle at bottom, rgba(255, 43, 214, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(4, 8, 16, 0.96), rgba(3, 6, 12, 0.98));
    overflow: hidden;
}

.android-bay::before,
.android-bay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.android-bay::before {
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.018) 0,
        rgba(255, 255, 255, 0.018) 1px,
        transparent 1px,
        transparent 6px
    );
    opacity: 0.25;
}

.android-bay::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: translateX(-120%);
    animation: androidBaySweep 7s linear infinite;
}

.android-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(240px, 0.7fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    min-height: auto;
}

.android-status-strip {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.android-state-chip {
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-family: var(--font-secondary);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.android-state-chip--live {
    color: var(--dark-bg);
    background: linear-gradient(90deg, var(--primary-cyan), #88f3ff);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.22);
}

.android-shell {
    --android-rotate-x: 0deg;
    --android-rotate-y: 0deg;
    --android-shift-x: 0px;
    --android-shift-y: 0px;
    position: relative;
    width: min(100%, 360px);
    height: 420px;
    margin: 2rem auto 0;
    transform-style: preserve-3d;
    transform:
        perspective(1200px)
        rotateX(var(--android-rotate-x))
        rotateY(var(--android-rotate-y))
        translate3d(var(--android-shift-x), var(--android-shift-y), 0);
    transition: transform 0.18s ease-out;
    animation: androidIdleFloat 4.6s ease-in-out infinite;
}

.android-shadow {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 190px;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.08) 70%, transparent 100%);
    filter: blur(8px);
}

.android-backpack {
    position: absolute;
    top: 194px;
    left: 50%;
    width: 168px;
    height: 150px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(16, 22, 34, 0.9), rgba(4, 8, 16, 0.9));
    clip-path: polygon(14% 0, 86% 0, 100% 20%, 88% 100%, 12% 100%, 0 20%);
    opacity: 0.55;
}

.android-antenna {
    position: absolute;
    top: 2px;
    width: 16px;
    height: 118px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(177, 186, 205, 0.95), rgba(72, 81, 99, 0.95));
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

.android-antenna::before,
.android-antenna::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.android-antenna::before {
    top: -8px;
    width: 28px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
}

.android-antenna::after {
    bottom: -7px;
    width: 28px;
    height: 12px;
    background: rgba(10, 14, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.android-antenna--left {
    left: 120px;
    transform: rotate(-22deg);
}

.android-antenna--right {
    right: 120px;
    transform: rotate(22deg);
}

.android-glow {
    position: absolute;
    inset: auto;
    border-radius: 50%;
    filter: blur(26px);
    opacity: 0.45;
}

.android-glow--cyan {
    width: 180px;
    height: 180px;
    left: 4%;
    top: 18%;
    background: rgba(0, 229, 255, 0.28);
}

.android-glow--pink {
    width: 220px;
    height: 220px;
    right: 3%;
    bottom: 10%;
    background: rgba(255, 43, 214, 0.22);
}

.android-head {
    position: absolute;
    top: 48px;
    left: 50%;
    width: 142px;
    height: 152px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(39, 48, 66, 0.98), rgba(13, 18, 29, 0.98));
    clip-path: polygon(12% 0, 88% 0, 100% 18%, 94% 86%, 74% 100%, 26% 100%, 6% 86%, 0 18%);
    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.08) inset,
        0 20px 40px rgba(0, 0, 0, 0.28);
}

.android-head::before {
    content: '';
    position: absolute;
    inset: 10px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    clip-path: inherit;
}

.android-face-plate {
    position: absolute;
    inset: 18px 20px 26px;
    background: linear-gradient(180deg, rgba(192, 197, 206, 0.88), rgba(96, 103, 116, 0.92));
    clip-path: polygon(16% 0, 84% 0, 100% 18%, 88% 100%, 12% 100%, 0 18%);
}

.android-brow {
    position: absolute;
    top: 38px;
    width: 34px;
    height: 8px;
    background: rgba(15, 20, 30, 0.9);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.06);
}

.android-brow--left {
    left: 34px;
    transform: rotate(-16deg);
}

.android-brow--right {
    right: 34px;
    transform: rotate(16deg);
}

.android-visor {
    position: absolute;
    top: 54px;
    left: 50%;
    width: 92px;
    height: 26px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.95), rgba(255, 43, 214, 0.75));
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.28);
    overflow: hidden;
    clip-path: polygon(10% 0, 90% 0, 100% 40%, 92% 100%, 8% 100%, 0 40%);
}

.android-visor::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    animation: androidVisorScan 2.2s linear infinite;
}

.android-ear {
    position: absolute;
    top: 56px;
    width: 16px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 10, 18, 0.92);
}

.android-ear--left {
    left: -12px;
}

.android-ear--right {
    right: -12px;
}

.android-mouth {
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: 52px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.18), rgba(255, 255, 255, 0.55), rgba(255, 43, 214, 0.18));
}

.android-neck {
    position: absolute;
    top: 204px;
    left: 50%;
    width: 70px;
    height: 46px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 10px, rgba(255, 255, 255, 0.12) 10px 12px);
}

.android-shoulder {
    position: absolute;
    top: 238px;
    width: 112px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(21, 30, 46, 0.96), rgba(9, 14, 24, 0.98));
    clip-path: polygon(10% 0, 100% 0, 88% 100%, 0 100%);
}

.android-shoulder--left {
    left: 48px;
    transform: skewX(-18deg);
}

.android-shoulder--right {
    right: 48px;
    transform: scaleX(-1) skewX(-18deg);
}

.android-arm {
    position: absolute;
    top: 276px;
    width: 48px;
    height: 142px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(17, 25, 39, 0.98), rgba(6, 10, 18, 0.98));
    clip-path: polygon(20% 0, 80% 0, 100% 10%, 84% 100%, 16% 100%, 0 10%);
}

.android-arm--left {
    left: 64px;
    transform: rotate(7deg);
}

.android-arm--right {
    right: 64px;
    transform: rotate(-7deg);
}

.android-torso {
    position: absolute;
    top: 244px;
    left: 50%;
    width: 198px;
    height: 188px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(30, 40, 60, 0.96), rgba(9, 14, 26, 0.99));
    clip-path: polygon(16% 0, 84% 0, 100% 20%, 88% 100%, 12% 100%, 0 20%);
    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.1) inset,
        0 28px 60px rgba(0, 0, 0, 0.32);
    animation: androidBreath 3.8s ease-in-out infinite;
}

.android-torso::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    clip-path: inherit;
}

.android-collar {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 106px;
    height: 24px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.android-chest-plate {
    position: absolute;
    top: 46px;
    left: 50%;
    width: 138px;
    height: 54px;
    transform: translateX(-50%);
    display: grid;
    gap: 0.55rem;
    align-content: center;
}

.android-chest-line {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(0, 229, 255, 0.65), rgba(255, 43, 214, 0.58));
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.18);
}

.android-reactor {
    position: absolute;
    top: 96px;
    left: 50%;
    width: 88px;
    height: 88px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
}

.android-reactor-ring,
.android-reactor-core {
    border-radius: 50%;
    position: absolute;
}

.android-reactor-ring {
    inset: 0;
    border: 2px solid rgba(0, 229, 255, 0.42);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.22), inset 0 0 24px rgba(255, 43, 214, 0.1);
    animation: androidReactorSpin 6s linear infinite;
}

.android-reactor-core {
    width: 34px;
    height: 34px;
    background: radial-gradient(circle, #ffffff 0%, #7ff5ff 30%, #00e5ff 60%, rgba(255, 43, 214, 0.8) 100%);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
    animation: androidCorePulse 2.4s ease-in-out infinite;
}

.android-ab-panel {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: 116px;
    display: grid;
    gap: 0.45rem;
}

.android-ab-panel span {
    height: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(0, 255, 122, 0.22));
}

.android-cable {
    position: absolute;
    top: 284px;
    width: 96px;
    height: 64px;
    border-top: 2px solid rgba(0, 229, 255, 0.24);
    border-radius: 999px 999px 0 0;
    opacity: 0.6;
}

.android-cable--left {
    left: 88px;
    transform: rotate(14deg);
}

.android-cable--right {
    right: 88px;
    transform: scaleX(-1) rotate(14deg);
}

.android-hip {
    position: absolute;
    left: 50%;
    top: 422px;
    width: 116px;
    height: 28px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(26, 35, 52, 0.98), rgba(8, 12, 22, 0.98));
}

.android-leg,
.android-shin {
    position: absolute;
    width: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(24, 33, 48, 0.98), rgba(8, 12, 22, 0.98));
}

.android-leg {
    top: 446px;
    height: 48px;
}

.android-shin {
    top: 490px;
    height: 42px;
}

.android-leg--left,
.android-shin--left {
    left: 168px;
    transform: rotate(7deg);
}

.android-leg--right,
.android-shin--right {
    right: 168px;
    transform: rotate(-7deg);
}

.android-foot {
    position: absolute;
    top: 526px;
    width: 54px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(90deg, rgba(38, 48, 66, 0.98), rgba(11, 16, 26, 0.98));
    clip-path: polygon(12% 0, 100% 0, 84% 100%, 0 100%);
}

.android-foot--left {
    left: 150px;
}

.android-foot--right {
    right: 150px;
    transform: scaleX(-1);
}

.android-hotspot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    cursor: pointer;
}

.android-hotspot span,
.android-hotspot::before,
.android-hotspot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.android-hotspot span {
    inset: 4px;
    background: #fff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}

.android-hotspot::before {
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.android-hotspot::after {
    inset: -10px;
    border: 1px solid rgba(0, 229, 255, 0.22);
    animation: androidHotspotPulse 2.2s ease-out infinite;
}

.android-hotspot.is-active span {
    background: var(--primary-cyan);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.7);
}

.android-hotspot.is-active::after {
    border-color: rgba(255, 43, 214, 0.38);
}

.android-readout {
    align-self: center;
    min-height: 290px;
}

.android-readout-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.android-readout-kicker,
.android-readout-status,
.android-metric-label {
    font-family: var(--font-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.android-readout-kicker {
    color: var(--primary-cyan);
}

.android-readout-status {
    color: var(--secondary-green);
}

.android-readout-title {
    margin: 0 0 0.7rem;
    font-family: var(--font-primary);
    color: var(--text-light);
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.08em;
}

.android-readout-copy {
    margin: 0 0 1.35rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.android-readout-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.android-metric {
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.android-metric strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-light);
    font-family: var(--font-primary);
    letter-spacing: 0.08em;
}

@keyframes androidBaySweep {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes androidVisorScan {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes androidReactorSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes androidCorePulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.12); opacity: 1; }
}

@keyframes androidHotspotPulse {
    0% { transform: scale(0.7); opacity: 0.9; }
    100% { transform: scale(1.45); opacity: 0; }
}

@keyframes androidIdleFloat {
    0%, 100% { transform: perspective(1200px) rotateX(var(--android-rotate-x)) rotateY(var(--android-rotate-y)) translate3d(var(--android-shift-x), calc(var(--android-shift-y) + 0px), 0); }
    50% { transform: perspective(1200px) rotateX(calc(var(--android-rotate-x) - 1deg)) rotateY(var(--android-rotate-y)) translate3d(var(--android-shift-x), calc(var(--android-shift-y) - 6px), 0); }
}

@keyframes androidBreath {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.02); }
}

/* DEPOOL Brain Interface Styles */
.brain-interface {
    position: relative;
    min-height: 700px;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, 
        rgba(138, 43, 226, 0.1) 0%, 
        rgba(0, 0, 0, 0.95) 50%, 
        rgba(0, 255, 122, 0.1) 100%);
    overflow: hidden;
}

.brain-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.central-brain {
    position: relative;
    width: 300px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-hemisphere {
    position: absolute;
    width: 140px;
    height: 180px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    backdrop-filter: blur(10px);
    animation: hemispherePulse 4s ease-in-out infinite;
}

.left-hemisphere {
    left: 10px;
    transform: rotate(-15deg);
    background: radial-gradient(ellipse at center, 
        rgba(0, 255, 255, 0.15) 0%, 
        rgba(0, 255, 255, 0.05) 50%, 
        rgba(0, 255, 255, 0.02) 100%);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.right-hemisphere {
    right: 10px;
    transform: rotate(15deg);
    background: radial-gradient(ellipse at center, 
        rgba(255, 43, 214, 0.15) 0%, 
        rgba(255, 43, 214, 0.05) 50%, 
        rgba(255, 43, 214, 0.02) 100%);
    border-color: rgba(255, 43, 214, 0.4);
    box-shadow: 0 0 30px rgba(255, 43, 214, 0.3);
    animation-delay: 2s;
}

.brain-stem {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50% 50% 20% 20%;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.cerebellum {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    background: radial-gradient(ellipse at center, 
        rgba(0, 255, 122, 0.15) 0%, 
        rgba(0, 255, 122, 0.05) 50%, 
        rgba(0, 255, 122, 0.02) 100%);
    border: 2px solid rgba(0, 255, 122, 0.4);
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(0, 255, 122, 0.3);
    animation: cerebellumPulse 3s ease-in-out infinite;
}

@keyframes hemispherePulse {
    0%, 100% { transform: scale(1) rotate(-15deg); opacity: 0.8; }
    50% { transform: scale(1.05) rotate(-15deg); opacity: 1; }
}

@keyframes cerebellumPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

.brain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 11;
}

.brain-label {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    animation: brainLabelGlow 3s ease-in-out infinite;
    margin-bottom: 0.3rem;
}

@keyframes brainLabelGlow {
    0%, 100% { opacity: 0.8; text-shadow: 0 0 30px rgba(0, 255, 255, 0.8); }
    50% { opacity: 1; text-shadow: 0 0 50px rgba(0, 255, 255, 1); }
}

.brain-subtitle {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: var(--primary-pink);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: subtitleGlow 4s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Brain Activity Indicators */
.brain-activity {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 12;
}

.activity-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: indicatorPulse 2s ease-in-out infinite;
}

.music-activity .indicator-dot {
    background: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.games-activity .indicator-dot {
    background: var(--primary-pink);
    box-shadow: 0 0 20px rgba(255, 43, 214, 0.8);
}

.tastes-activity .indicator-dot {
    background: var(--secondary-green);
    box-shadow: 0 0 20px rgba(0, 255, 122, 0.8);
}

@keyframes indicatorPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.indicator-label {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.control-btn:hover {
    background: var(--primary-cyan);
    color: var(--dark-bg);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.control-btn.hidden {
    display: none;
}

.section-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    color: var(--secondary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(0, 255, 122, 0.3);
    border-radius: 15px;
    background: rgba(0, 255, 122, 0.1);
}

.section-filter {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-muted);
    border-radius: 15px;
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--secondary-green);
    color: var(--dark-bg);
    border-color: var(--secondary-green);
}

/* Enhanced Music Section */
.audio-visualizer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 80px;
    margin-bottom: 1.5rem;
    gap: 0.3rem;
}

.wave-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-cyan), var(--primary-pink));
    border-radius: 2px;
    animation: waveAnimation 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; height: 40%; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; height: 35%; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; height: 80%; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; height: 55%; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; height: 45%; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; height: 70%; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; height: 30%; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; height: 65%; }
.wave-bar:nth-child(10) { animation-delay: 0.9s; height: 50%; }
.wave-bar:nth-child(11) { animation-delay: 1.0s; height: 75%; }

@keyframes waveAnimation {
    0%, 100% { transform: scaleY(1); opacity: 0.7; }
    50% { transform: scaleY(1.3); opacity: 1; }
}

.track-info {
    text-align: center;
    margin-bottom: 2rem;
}

.track-name {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
}

.artist-name {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.track-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-pink));
    border-radius: 3px;
    animation: progressAnimation 10s linear infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    100% { width: 100%; }
}

.time-display {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.playlist {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.playlist::-webkit-scrollbar {
    display: none;
}

.playlist:active {
    cursor: grabbing;
}

.playlist-item {
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 280px;
    flex-shrink: 0;
}

.playlist-item:hover {
    transform: translateY(-8px) scale(1.05);
}

.playlist-item.active {
    transform: translateY(-12px) scale(1.08);
}

.disc-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.disc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 0, 255, 0.3), 
        rgba(0, 255, 255, 0.3), 
        rgba(255, 255, 0, 0.3), 
        transparent
    );
    animation: rgbFlow 3s linear infinite;
    z-index: 1;
}

.playlist-item:hover .disc-card {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.playlist-item:hover .disc-card::before {
    animation-duration: 1.5s;
}

.playlist-item.active .disc-card {
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}

.playlist-item.active .disc-card::before {
    animation-duration: 0.8s;
    opacity: 0.8;
}

@keyframes rgbFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.disc-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-right: 1.5rem;
}

.disc-cover {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.disc-artwork {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-pink));
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-item:nth-child(2) .disc-artwork {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
}

.playlist-item:nth-child(3) .disc-artwork {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.disc-center {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.playlist-item.active .disc-center {
    animation: discSpin 3s linear infinite;
}

.disc-grooves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-item.active .disc-grooves {
    animation: discSpin 3s linear infinite;
}

.disc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

.disc-play-btn {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-cyan);
    border: 2px solid var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 255, 255, 0.4);
}

.disc-play-btn:hover {
    background: var(--primary-pink);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.disc-play-btn .pause-icon {
    display: none;
}

.disc-play-btn.active .play-icon {
    display: none;
}

.disc-play-btn.active .pause-icon {
    display: block;
    color: var(--dark-bg);
}

.disc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.disc-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disc-artist {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.disc-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.disc-duration {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--primary-cyan);
    font-weight: 600;
}

.disc-status {
    font-family: var(--font-secondary);
    font-size: 0.6rem;
    color: var(--secondary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 122, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 122, 0.3);
}

.playlist-item.active .disc-status {
    color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes discSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Enhanced Games Section */
.games-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.featured-game {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--primary-pink);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.game-preview {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 43, 214, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.game-thumbnail {
    font-size: 4rem;
    filter: drop-shadow(0 0 30px rgba(255, 43, 214, 0.8));
    animation: thumbnailFloat 3s ease-in-out infinite;
}

@keyframes thumbnailFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-preview:hover .game-overlay {
    opacity: 1;
}

.game-title-large {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-pink);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.game-description {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.game-launch-btn {
    padding: 0.5rem 1.5rem;
    background: var(--primary-pink);
    color: var(--dark-bg);
    border: none;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-launch-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 43, 214, 0.6);
}

.game-stats {
    display: flex;
    justify-content: space-around;
}

.game-stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.game-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-pink);
    box-shadow: 0 0 25px rgba(255, 43, 214, 0.4);
}

.game-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 15px var(--primary-pink));
}

.game-title {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.game-genre {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.game-rating {
    font-size: 0.8rem;
    color: #ffd700;
}

/* Enhanced Tastes Section */
.tastes-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.taste-category {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
}

.category-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 122, 0.3);
}

.taste-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.taste-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.taste-item:hover {
    transform: translateX(8px);
    border-color: var(--secondary-green);
    box-shadow: 0 0 25px rgba(0, 255, 122, 0.4);
}

.taste-item.featured {
    background: rgba(0, 255, 122, 0.1);
    border-color: rgba(0, 255, 122, 0.3);
}

.taste-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 15px var(--secondary-green));
    min-width: 60px;
    text-align: center;
}

.taste-info {
    flex: 1;
}

.taste-name {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.taste-description {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.taste-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-family: var(--font-secondary);
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Background Effects */
.brain-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 255, 0.1) 2%),
        linear-gradient(0deg, transparent 98%, rgba(255, 43, 214, 0.1) 2%);
    background-size: 50px 50px;
    animation: circuitMove 20s linear infinite;
}

@keyframes circuitMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 43, 214, 0.05) 50%, 
        transparent 70%);
    animation: glitchMove 8s ease-in-out infinite;
}

@keyframes glitchMove {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink);
}

/* Selection */
::selection {
    background: var(--primary-cyan);
    color: var(--dark-bg);
}

::-moz-selection {
    background: var(--primary-cyan);
    color: var(--dark-bg);
}

/* Cursor Effect */
.cursor-effect {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.28) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: screen;
    transition: transform 0.1s ease;
}

/* Mobile Responsive Design */

/* Tablets and Large Phones */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 4rem 0;
    }
    
    .hero-logo-img {
        width: min(120px, 35vw);
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-line {
        font-size: 1.2rem;
    }
    
    .title-sub {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat {
        width: 100%;
        max-width: 200px;
    }
    
    .layout-grid--2,
    .layout-grid--3 {
        grid-template-columns: 1fr;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .card-grid--apps {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .project-links-grid {
        grid-template-columns: 1fr;
    }

    .android-stage {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: auto;
        padding-top: 2.75rem;
    }

    .android-status-strip {
        position: static;
        margin-bottom: 0.5rem;
    }

    .android-shell {
        width: min(100%, 430px);
        height: 500px;
        margin-top: 0;
    }

    .android-readout {
        min-height: auto;
    }

    .android-readout-metrics {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cyber-terminal {
        width: 280px;
        right: 10px;
        bottom: 10px;
    }
    
    .terminal-body {
        height: 120px;
    }
    
    /* DEPOOL Brain Interface Mobile */
    .brain-interface {
        min-height: 500px;
        padding: 2rem 0;
    }
    
    .brain-container {
        height: 400px;
    }
    
    .central-brain {
        width: 250px;
        height: 200px;
    }
    
    .brain-hemisphere {
        width: 110px;
        height: 140px;
    }
    
    .brain-label {
        font-size: 1.5rem;
    }
    
    .brain-subtitle {
        font-size: 0.7rem;
    }
    
    /* Music Section Mobile */
    .playlist {
        flex-direction: column;
        gap: 1rem;
        overflow-x: visible;
    }
    
    .playlist-item {
        min-width: auto;
        width: 100%;
    }
    
    .disc-container {
        width: 80px;
        height: 80px;
        margin-right: 1rem;
    }
    
    .disc-center {
        width: 25px;
        height: 25px;
    }
    
    /* Games Section Mobile */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-preview {
        height: 150px;
    }
    
    .game-thumbnail {
        font-size: 3rem;
    }
    
    /* Tastes Section Mobile */
    .taste-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .taste-icon {
        min-width: auto;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-content {
        padding: 3rem 0;
    }
    
    .hero-logo-img {
        width: min(100px, 30vw);
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .title-line {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .title-sub {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
        min-height: calc(100vh - 80px);
    }
    
    .panel {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-action {
        width: 100%;
        justify-content: center;
    }
    
    .cta-row {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .app-tile-head {
        gap: 0.5rem;
    }
    
    .app-tile-icon {
        width: 36px;
        height: 36px;
    }
    
    .app-tile-icon img {
        width: 24px;
        height: 24px;
    }
    
    .app-tile-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .app-download-btn {
        width: 100%;
    }

    .android-bay {
        padding: 0.9rem;
    }

    .android-stage {
        padding-top: 0;
    }

    .android-status-strip {
        gap: 0.45rem;
    }

    .android-state-chip {
        padding: 0.35rem 0.55rem;
        font-size: 0.62rem;
    }

    .android-shell {
        width: 100%;
        height: 430px;
    }

    .android-head {
        top: 42px;
        width: 116px;
        height: 122px;
    }

    .android-visor {
        top: 44px;
        width: 76px;
        height: 22px;
    }

    .android-brow {
        top: 32px;
        width: 28px;
    }

    .android-brow--left {
        left: 28px;
    }

    .android-brow--right {
        right: 28px;
    }

    .android-mouth {
        bottom: 22px;
        width: 42px;
    }

    .android-antenna {
        top: 10px;
        width: 12px;
        height: 92px;
    }

    .android-antenna--left {
        left: 114px;
    }

    .android-antenna--right {
        right: 114px;
    }

    .android-neck {
        top: 168px;
        width: 56px;
        height: 36px;
    }

    .android-shoulder {
        top: 200px;
        width: 84px;
        height: 38px;
    }

    .android-shoulder--left {
        left: 26px;
    }

    .android-shoulder--right {
        right: 26px;
    }

    .android-arm {
        top: 230px;
        width: 40px;
        height: 112px;
    }

    .android-arm--left {
        left: 34px;
    }

    .android-arm--right {
        right: 34px;
    }

    .android-torso {
        top: 206px;
        width: 168px;
        height: 164px;
    }

    .android-chest-plate {
        top: 40px;
        width: 116px;
        height: 46px;
        gap: 0.45rem;
    }

    .android-chest-line {
        height: 6px;
    }

    .android-reactor {
        top: 80px;
        width: 74px;
        height: 74px;
    }

    .android-reactor-core {
        width: 28px;
        height: 28px;
    }

    .android-ab-panel {
        width: 96px;
        bottom: 14px;
        gap: 0.35rem;
    }

    .android-cable {
        display: none;
    }

    .android-hip {
        top: 370px;
        width: 96px;
        height: 22px;
    }

    .android-leg {
        top: 392px;
        width: 22px;
        height: 34px;
    }

    .android-shin {
        top: 423px;
        width: 20px;
        height: 28px;
    }

    .android-leg--left,
    .android-shin--left {
        left: 154px;
    }

    .android-leg--right,
    .android-shin--right {
        right: 154px;
    }

    .android-foot {
        top: 448px;
        width: 42px;
        height: 12px;
    }

    .android-foot--left {
        left: 142px;
    }

    .android-foot--right {
        right: 142px;
    }

    .android-readout-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .android-readout-title {
        font-size: 1.2rem;
    }

    .android-readout-copy {
        font-size: 0.88rem;
    }
    
    .contact-cards {
        gap: 0.5rem;
    }
    
    .contact-card {
        padding: 0.75rem 0.5rem;
    }
    
    .contact-icon {
        width: 36px;
        height: 36px;
    }
    
    .cyber-terminal {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .nsfw-modal {
        align-items: end;
        padding: 0.75rem;
    }

    .nsfw-modal-content {
        width: 100%;
        max-height: min(84vh, 620px);
        padding: 0.9rem 0.8rem 0.95rem;
        margin: 0;
        overflow-y: auto;
        clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    }

    .nsfw-close-btn {
        top: 0.65rem;
        right: 0.65rem;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .nsfw-badge-row {
        gap: 0.3rem;
        margin: 0.9rem 0 0.55rem;
        padding-right: 2.2rem;
    }

    .nsfw-badge {
        min-height: 24px;
        padding: 0.18rem 0.45rem;
        font-size: 0.56rem;
        letter-spacing: 0.1em;
    }

    .nsfw-title {
        padding-right: 2.2rem;
        margin: 0.55rem 0 0.3rem;
        font-size: 1.08rem;
        letter-spacing: 0.06em;
        line-height: 1.1;
    }

    .nsfw-subtitle {
        margin-bottom: 0.7rem;
        font-size: 0.74rem;
        line-height: 1.4;
    }

    .nsfw-warning-panel {
        grid-template-columns: 36px 1fr;
        gap: 0.55rem;
        margin-bottom: 0.7rem;
        padding: 0.6rem;
    }

    .nsfw-warning-copy strong {
        font-size: 0.68rem;
    }

    .nsfw-warning-copy p {
        font-size: 0.7rem;
        line-height: 1.35;
    }

    .nsfw-input-label {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .nsfw-input-container {
        gap: 0.3rem;
        grid-template-columns: 1fr 38px;
        margin-bottom: 0.55rem;
    }

    .nsfw-password-input,
    .nsfw-toggle-password-btn,
    .nsfw-submit-btn {
        min-height: 40px;
    }

    .nsfw-password-input {
        padding: 0 0.65rem;
        font-size: 0.74rem;
        letter-spacing: 0.07em;
    }

    .nsfw-toggle-password-btn {
        font-size: 0.88rem;
    }

    .nsfw-submit-btn {
        font-size: 0.74rem;
        letter-spacing: 0.12em;
    }

    .nsfw-error-message {
        min-height: 1.25rem;
        margin-top: 0.7rem;
        font-size: 0.74rem;
        line-height: 1.4;
    }
    
    .terminal-body {
        height: 100px;
    }
    
    /* DEPOOL Brain Interface Small Mobile */
    .brain-interface {
        min-height: 400px;
        padding: 1.5rem 0;
    }
    
    .brain-container {
        height: 300px;
    }
    
    .central-brain {
        width: 200px;
        height: 160px;
    }
    
    .brain-hemisphere {
        width: 90px;
        height: 120px;
    }
    
    .brain-label {
        font-size: 1.2rem;
    }
    
    .brain-subtitle {
        font-size: 0.6rem;
    }
    
    .brain-activity {
        flex-direction: column;
        gap: 0.5rem;
        top: 5px;
    }
    
    /* Music Section Small Mobile */
    .audio-visualizer {
        height: 60px;
        gap: 0.2rem;
    }
    
    .disc-container {
        width: 60px;
        height: 60px;
        margin-right: 0.75rem;
    }
    
    .disc-center {
        width: 20px;
        height: 20px;
    }
    
    .disc-title {
        font-size: 0.9rem;
    }
    
    .disc-artist {
        font-size: 0.8rem;
    }
    
    /* Games Section Small Mobile */
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-preview {
        height: 120px;
    }
    
    .game-thumbnail {
        font-size: 2.5rem;
    }
    
    .game-title-large {
        font-size: 1.2rem;
    }
    
    .game-description {
        font-size: 0.8rem;
    }
    
    /* Tastes Section Small Mobile */
    .taste-item {
        padding: 0.75rem;
    }
    
    .taste-icon {
        font-size: 1.5rem;
    }
    
    .taste-name {
        font-size: 0.9rem;
    }
    
    .taste-description {
        font-size: 0.75rem;
    }
    
    /* Modal Mobile */
    .nsfw-modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }

    .nsfw-title {
        font-size: 1.5rem;
    }

    .nsfw-warning-panel {
        grid-template-columns: 1fr;
    }

    .nsfw-warning-icon {
        width: 46px;
        height: 46px;
    }

    .nsfw-input-container {
        grid-template-columns: 1fr 52px;
    }

    .nsfw-submit-btn {
        min-height: 52px;
    }
    
    .forbidden-content-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    /* Footer Small Mobile */
    .footer-content {
        padding: 0 0.75rem;
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .social-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-stats {
        margin-top: 1rem;
    }
    
    .brain-interface {
        min-height: 300px;
        padding: 1rem 0;
    }
    
    .brain-container {
        height: 200px;
    }
    
    .central-brain {
        width: 180px;
        height: 140px;
    }
    
    .section {
        padding: 1.5rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .hero-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Media Viewer */
.media-viewer {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: max(4.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    overflow-y: auto;
    background: rgba(2, 5, 12, 0.96);
    z-index: 2000;
    backdrop-filter: blur(8px);
    overscroll-behavior: contain;
}

.media-viewer-content {
    position: relative;
    width: min(1100px, 100%);
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #03070d;
    border: 1px solid rgba(0, 229, 255, 0.48);
    box-shadow: 0 0 36px rgba(0, 229, 255, 0.16), 0 0 64px rgba(255, 43, 214, 0.08);
    overflow: hidden;
}

.media-viewer-content img,
.media-viewer-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.media-viewer-content video {
    background: #000;
}

.media-viewer-close-btn {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 229, 255, 0.55);
    border-radius: 4px;
    color: var(--text-light);
    background: rgba(3, 7, 13, 0.94);
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 2001;
}

.media-viewer-close-btn:hover {
    background: var(--primary-cyan);
    color: var(--dark-bg);
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
}

.media-viewer-close-btn:focus-visible,
.media-viewer-retry-btn:focus-visible,
.memory-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Memory Cards */
.memory-card {
    min-width: 0;
    cursor: pointer;
    border: 1px solid rgba(0, 229, 255, 0.2);
    background: linear-gradient(145deg, rgba(4, 16, 24, 0.96), rgba(7, 8, 17, 0.98));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.memory-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, 0.62);
    box-shadow: 0 12px 28px rgba(0, 229, 255, 0.12);
}

.memory-thumbnail {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    margin-bottom: 0.9rem;
    background: #050a11;
}

.memory-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

img.memory-thumbnail {
    display: block;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.memory-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.memory-thumbnail video[hidden] {
    display: none;
}

.video-poster-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.65rem;
    padding: 1rem;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 229, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 120%, rgba(255, 43, 214, 0.15), transparent 65%),
        #060b13;
    background-size: 22px 22px, 22px 22px, auto, auto;
    color: var(--text-light);
    text-align: center;
}

.video-poster-label {
    color: var(--primary-cyan);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.video-poster-title {
    max-width: 100%;
    font-family: var(--font-primary);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    overflow-wrap: anywhere;
}

.media-viewer-error {
    position: absolute;
    inset: auto 1rem 1rem;
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 43, 214, 0.55);
    background: rgba(3, 7, 13, 0.94);
    color: var(--text-light);
    text-align: center;
}

.media-viewer-error p {
    margin: 0;
    color: var(--text-muted);
}

.media-viewer-retry-btn {
    padding: 0.65rem 1rem;
    border: 1px solid rgba(0, 229, 255, 0.6);
    background: rgba(0, 229, 255, 0.1);
    color: var(--text-light);
    font-family: var(--font-primary);
    cursor: pointer;
}

.memory-card:hover .memory-thumbnail img,
.memory-card:hover .memory-thumbnail video {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--dark-bg);
    pointer-events: none;
    transition: all 0.3s ease;
}

.memory-card:hover .play-icon {
    background: var(--primary-cyan);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .nav-btn:hover,
    .card--hover:hover,
    .cta-btn:hover,
    .app-download-btn:hover,
    .contact-card:hover,
    .game-item:hover,
    .taste-item:hover {
        transform: none;
    }
    
    .nav-btn:active,
    .card--hover:active,
    .cta-btn:active,
    .app-download-btn:active,
    .contact-card:active,
    .game-item:active,
    .taste-item:active {
        transform: scale(0.98);
    }
    
    .cursor-effect {
        display: none;
    }
    
    .memory-card:hover {
        transform: none;
    }
    
    .memory-card:active {
        transform: scale(0.98);
    }
    
    .memory-card:hover .memory-thumbnail img,
    .memory-card:hover .memory-thumbnail video {
        transform: none;
    }
    
    .memory-card:active .memory-thumbnail img,
    .memory-card:active .memory-thumbnail video {
        transform: scale(0.95);
    }
    
    .play-icon {
        background: rgba(0, 229, 255, 0.9);
    }
}

/* Mobile Video Optimizations */
@media (max-width: 768px) {
    .media-viewer {
        padding: max(4rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
    }

    .media-viewer-content {
        max-height: calc(100vh - 5rem);
        max-height: calc(100dvh - 5rem);
    }

    .media-viewer-content img,
    .media-viewer-content video {
        max-height: calc(100vh - 5rem);
        max-height: calc(100dvh - 5rem);
    }

    .media-viewer-close-btn {
        width: 44px;
        height: 44px;
    }
    
    .memory-thumbnail {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .play-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Small Mobile Video Optimizations */
@media (max-width: 480px) {
    .memory-thumbnail {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .play-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Video Loading and Performance Optimizations */
.video-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--primary-cyan);
}

.video-loading .loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 229, 255, 0.2);
    border-top: 3px solid var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.video-loading p {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Video Play Overlay for Low-End Devices */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

.play-button-large {
    width: 80px;
    height: 80px;
    background: var(--primary-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.play-button-large span {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-bg);
}

.video-play-overlay:hover .play-button-large {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.7);
}

.play-hint {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    text-align: center;
    margin: 0;
    padding: 0 1rem;
}

/* Performance Indicator */
.performance-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-cyan);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.performance-indicator.visible {
    opacity: 1;
}

.performance-indicator.high-performance {
    color: var(--secondary-green);
}

.performance-indicator.medium-performance {
    color: var(--primary-cyan);
}

.performance-indicator.low-performance {
    color: var(--primary-pink);
}

/* Optimized Video Thumbnails */
.memory-thumbnail video {
    filter: blur(0px);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.memory-card.loading .memory-thumbnail video {
    filter: blur(2px);
    opacity: 0.6;
}

.memory-card.loaded .memory-thumbnail video {
    filter: blur(0px);
    opacity: 1;
}

/* Low-End Device Optimizations */
.low-end-device .media-viewer-content video {
    max-width: 100%;
    max-height: calc(100vh - 5rem);
    max-height: calc(100dvh - 5rem);
}

.low-end-device .memory-thumbnail {
    height: auto;
    aspect-ratio: 16 / 9;
}

.low-end-device .play-icon {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
}

/* Low-End Optimizations for H-Games */
.low-end-device .h-game-card,
.low-end-device .h-game-card:hover {
    transform: none;
    box-shadow: none;
    transition: none;
}

.low-end-device .h-game-card .game-image,
.low-end-device .h-game-card:hover .game-image {
    transform: none;
    transition: none;
}

.low-end-device .game-overlay {
    opacity: 1;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
}

.low-end-device .game-badge:after {
    display: none;
}

.low-end-device .game-btn--primary:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(255, 43, 214, 0.3);
}

/* Network-Aware Loading */
.slow-connection .memory-thumbnail--video video {
    opacity: 0.3;
}

.slow-connection .memory-thumbnail--video::after {
    content: 'ABRIR VIDEO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--primary-cyan);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    z-index: 5;
}

/* Optimized Forbidden Zone Design */
.forbidden-zone-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.zone-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.zone-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-pink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 43, 214, 0.3);
}

.zone-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.h-games-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Games Search Container */
.games-search-container {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.games-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 43, 214, 0.05));
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.games-search-box:focus-within {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

.games-search-box .search-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.games-search-box:focus-within .search-icon {
    opacity: 1;
}

.games-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-family: var(--font-secondary);
    font-size: 1rem;
    padding: 0.5rem 0;
}

.games-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.search-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(0, 229, 255, 0.3);
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255, 43, 214, 0.05), rgba(0, 229, 255, 0.05));
    border: 1px dashed rgba(255, 43, 214, 0.3);
    border-radius: 16px;
    margin: 1rem 0;
}

.no-results-content {
    text-align: center;
}

.no-results-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.no-results-text strong {
    color: var(--primary-pink);
}

.no-results-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Hidden game cards (for search filtering) */
.h-game-card.game-hidden {
    display: none !important;
}

/* H-Game Cards - Optimized */
.h-game-card {
    background: linear-gradient(135deg, rgba(255, 43, 214, 0.1), rgba(0, 229, 255, 0.05));
    border: 4px solid rgba(255, 43, 214, 0.6);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative;
    content-visibility: auto;
    contain: layout style paint;
    box-shadow: 0 4px 12px rgba(255, 43, 214, 0.15);
}

.h-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 43, 214, 0.4);
    border-color: rgba(255, 43, 214, 0.9);
}

.game-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.game-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    will-change: transform;
}

.h-game-card:hover .game-image {
    transform: scale(1.03);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: opacity;
}

.h-game-card:hover .game-overlay {
    opacity: 1;
}

.game-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.game-rating {
    background: var(--primary-pink);
    color: var(--dark-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 700;
}

.game-type {
    background: rgba(0, 229, 255, 0.8);
    color: var(--dark-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 700;
}

.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-pink);
    color: var(--dark-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(255, 43, 214, 0.3);
    /* Animation removed for performance */
}

/* Simplified badge - no pseudo-element animation */
.game-badge:after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--primary-pink);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
}

.game-content {
    padding: 1rem;
}

.game-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.game-description {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.game-version {
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary-cyan);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
}

.game-size {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary-purple);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
}

.game-rating-stars {
    background: rgba(0, 255, 122, 0.1);
    color: var(--secondary-green);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
}

.game-actions {
    display: flex;
    gap: 1rem;
}

.game-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.game-btn--primary {
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-purple));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 43, 214, 0.3);
}

.game-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 43, 214, 0.5);
}

.game-btn--primary:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-text {
    font-size: 0.9rem;
}

/* Optimized Modal Performance */
.forbidden-content-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: none;
    contain: strict;
    will-change: opacity;
}

.forbidden-content-modal-content {
    background: linear-gradient(135deg, rgba(5, 6, 17, 0.98), rgba(2, 3, 10, 0.98));
    border: 5px solid rgba(255, 43, 214, 0.7);
    border-radius: 28px;
    max-width: 98vw;
    max-height: 98vh;
    width: 96%;
    height: 92%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 43, 214, 0.35);
    content-visibility: auto;
    contain: layout style paint;
    transform: translateZ(0);
}

.forbidden-content-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 43, 214, 0.9);
    color: var(--dark-bg);
    border: 3px solid rgba(255, 43, 214, 1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 10;
    will-change: transform;
}

.forbidden-content-close-btn:hover {
    background: var(--primary-pink);
    transform: scale(1.15);
}

#forbidden-content-body {
    height: 100%;
    overflow-y: auto;
    padding: 2.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-pink) transparent;
    content-visibility: auto;
    contain: layout style paint;
    will-change: scroll-position;
}

#forbidden-content-body::-webkit-scrollbar {
    width: 10px;
}

#forbidden-content-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

#forbidden-content-body::-webkit-scrollbar-thumb {
    background: var(--primary-pink);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

/* Performance Optimizations */
.low-end-device .h-games-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.low-end-device .game-thumbnail {
    height: 150px;
}

.low-end-device .zone-title {
    font-size: 2rem;
}

.low-end-device .game-card:hover {
    transform: none;
}

.low-end-device .game-overlay {
    display: none;
}

/* Discord-Style Music Cards */
.discord-playlist {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.discord-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.discord-track:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-cyan);
    transform: translateX(4px);
}

.discord-track.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--primary-cyan);
}

.discord-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.discord-track.active .avatar-circle {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
}

.avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-green);
    border: 2px solid var(--dark-bg);
    transition: all 0.3s ease;
}

.avatar-status.playing {
    background: var(--primary-cyan);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.discord-info {
    flex: 1;
    min-width: 0;
}

.discord-title {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-artist {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-meta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.discord-duration {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.discord-status {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    color: var(--secondary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.discord-track.active .discord-status {
    color: var(--primary-cyan);
}

.discord-play-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.discord-play-btn:hover {
    background: var(--primary-cyan);
    color: var(--dark-bg);
    border-color: var(--primary-cyan);
    transform: scale(1.1);
}

.discord-play-btn.active {
    background: var(--primary-cyan);
    color: var(--dark-bg);
    border-color: var(--primary-cyan);
}

.discord-play-btn .pause-icon {
    display: none;
}

.discord-play-btn.active .play-icon {
    display: none;
}

.discord-play-btn.active .pause-icon {
    display: block;
}

/* Optimized Audio Visualizer */
.audio-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    margin: 1rem 0;
}

.wave-bar {
    width: 3px;
    background: linear-gradient(to top, var(--primary-cyan), var(--primary-pink));
    border-radius: 2px;
    transition: height 0.1s ease;
}

.wave-bar:nth-child(1) { height: 20%; }
.wave-bar:nth-child(2) { height: 40%; }
.wave-bar:nth-child(3) { height: 60%; }
.wave-bar:nth-child(4) { height: 80%; }
.wave-bar:nth-child(5) { height: 100%; }
.wave-bar:nth-child(6) { height: 80%; }
.wave-bar:nth-child(7) { height: 60%; }
.wave-bar:nth-child(8) { height: 40%; }
.wave-bar:nth-child(9) { height: 20%; }
.wave-bar:nth-child(10) { height: 40%; }
.wave-bar:nth-child(11) { height: 60%; }
.wave-bar:nth-child(12) { height: 80%; }

.audio-visualizer.playing .wave-bar {
    animation: wave 1s ease-in-out infinite;
}

.audio-visualizer.playing .wave-bar:nth-child(1) { animation-delay: 0s; }
.audio-visualizer.playing .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-visualizer.playing .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-visualizer.playing .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-visualizer.playing .wave-bar:nth-child(5) { animation-delay: 0.4s; }
.audio-visualizer.playing .wave-bar:nth-child(6) { animation-delay: 0.5s; }
.audio-visualizer.playing .wave-bar:nth-child(7) { animation-delay: 0.6s; }
.audio-visualizer.playing .wave-bar:nth-child(8) { animation-delay: 0.7s; }
.audio-visualizer.playing .wave-bar:nth-child(9) { animation-delay: 0.8s; }
.audio-visualizer.playing .wave-bar:nth-child(10) { animation-delay: 0.9s; }
.audio-visualizer.playing .wave-bar:nth-child(11) { animation-delay: 1s; }
.audio-visualizer.playing .wave-bar:nth-child(12) { animation-delay: 1.1s; }

@keyframes wave {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

/* Mini-Game Panel Styles - EXPANDED */
.mini-game-panel {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(5, 6, 17, 0.98));
    border: 3px solid var(--primary-cyan);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.4);
    animation: slideInUp 0.5s ease-out;
    z-index: 100;
}

.mini-game-panel.active {
    display: flex;
    flex-direction: column;
}

/* Hide game overlay when mini-game is active */
.game-preview:has(.mini-game-panel.active) .game-overlay {
    display: none;
}

/* Game preview positioning for mini-game */
.game-preview {
    position: relative;
    min-height: 400px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mini-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(0, 229, 255, 0.15);
    border-bottom: 2px solid rgba(0, 229, 255, 0.3);
}

.mini-game-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mini-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--primary-cyan);
    background: transparent;
    color: var(--primary-cyan);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-btn:hover {
    background: var(--primary-cyan);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.4);
}

.mini-btn--play {
    background: var(--secondary-green);
    border-color: var(--secondary-green);
    color: var(--dark-bg);
}

.mini-btn--play:hover {
    background: #00ff7a;
    border-color: #00ff7a;
}

.mini-btn--pause {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: var(--dark-bg);
}

.mini-btn--pause:hover {
    background: #ff2bd6;
    border-color: #ff2bd6;
}

.mini-btn--reset {
    background: var(--secondary-purple);
    border-color: var(--secondary-purple);
    color: var(--dark-bg);
}

.mini-btn--reset:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.mini-btn--close {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.mini-btn--close:hover {
    background: rgba(255, 67, 67, 0.8);
    border-color: #ff4343;
    color: white;
}

.mini-game-controls {
    display: flex;
    gap: 0.4rem;
}

.mini-game-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Sky Canvas - EXPANDED */
.game-canvas {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(to bottom, #0a0a0a, #1a1a2a);
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

/* Sky Defender - Sky Canvas Styles */
.sky-canvas {
    background: linear-gradient(to bottom, 
        #0d1b2a 0%, 
        #1b3a5f 30%, 
        #2d5a87 60%, 
        #4a7c9b 100%);
}

.sky-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, #fff, transparent);
    background-size: 200px 150px;
    animation: twinkle 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: 
        radial-gradient(ellipse 100px 50px at 10% 20%, rgba(255,255,255,0.1), transparent),
        radial-gradient(ellipse 80px 40px at 30% 60%, rgba(255,255,255,0.08), transparent),
        radial-gradient(ellipse 120px 60px at 70% 30%, rgba(255,255,255,0.12), transparent),
        radial-gradient(ellipse 90px 45px at 90% 70%, rgba(255,255,255,0.1), transparent);
    animation: cloudsMove 20s linear infinite;
}

@keyframes cloudsMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Game Plane */
.game-plane {
    position: absolute;
    left: 30px;
    bottom: 20px;
    font-size: 2.5rem;
    transition: all 0.15s ease-out;
    z-index: 20;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    transform: rotate(-5deg);
}

.game-plane.moving-up {
    transform: rotate(-15deg);
}

.game-plane.moving-down {
    transform: rotate(10deg);
}

/* Monsters */
.monsters-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
}

.monster {
    position: absolute;
    font-size: 2rem;
    transition: transform 0.1s linear;
    z-index: 15;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.monster.exploding {
    animation: monsterExplode 0.4s ease-out forwards;
}

@keyframes monsterExplode {
    0% { transform: scale(1); opacity: 1; filter: brightness(1); }
    50% { transform: scale(1.5); opacity: 0.8; filter: brightness(2) saturate(2); }
    100% { transform: scale(0); opacity: 0; }
}

/* Bullets */
.bullets-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 18;
    pointer-events: none;
}

.bullet {
    position: absolute;
    width: 12px;
    height: 4px;
    background: linear-gradient(to right, #ff0, #f00, #ff0);
    border-radius: 2px;
    box-shadow: 0 0 10px #ff0, 0 0 20px #f00;
    z-index: 18;
}

.bullet.super {
    width: 20px;
    height: 6px;
    background: linear-gradient(to right, #0ff, #00f, #0ff);
    box-shadow: 0 0 15px #0ff, 0 0 30px #00f;
}

/* Game Score, Lives, Level */
.game-score, .game-lives, .game-level {
    position: absolute;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 25;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    padding: 0.3rem 0.6rem;
    background: rgba(0,0,0,0.4);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
}

.game-score {
    top: 10px;
    left: 10px;
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

.game-lives {
    top: 10px;
    right: 10px;
    color: var(--primary-pink);
    border-color: var(--primary-pink);
}

.game-level {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary-green);
    border-color: var(--secondary-green);
}

.game-instructions {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    text-align: center;
}

.game-instructions p {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.2rem 0;
    line-height: 1.4;
}

/* Game States */
.game-canvas.playing {
    border-color: var(--secondary-green);
    box-shadow: 0 0 25px rgba(0, 255, 122, 0.4), inset 0 0 30px rgba(0,255,122,0.1);
}

.game-canvas.paused {
    border-color: var(--primary-pink);
    box-shadow: 0 0 25px rgba(255, 43, 214, 0.4);
}

.game-canvas.game-over {
    border-color: rgba(255, 67, 67, 0.8);
    box-shadow: 0 0 30px rgba(255, 67, 67, 0.6);
}

/* Responsive Game Styles */
@media (max-width: 768px) {
    .game-preview {
        min-height: 350px;
    }
    
    .game-canvas {
        height: 220px;
    }
    
    .game-plane {
        font-size: 2rem;
    }
    
    .monster {
        font-size: 1.6rem;
    }
    
    .mini-game-title {
        font-size: 0.9rem;
    }
    
    .mini-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.6rem;
    }
    
    .game-instructions {
        font-size: 0.65rem;
    }
    
    .game-instructions p {
        font-size: 0.65rem;
    }
}

@media (min-width: 1200px) {
    .game-preview {
        min-height: 450px;
    }
    
    .game-canvas {
        height: 320px;
    }
    
    .game-plane {
        font-size: 3rem;
    }
    
    .monster {
        font-size: 2.5rem;
    }
}

/* Mobile Responsive - Maintain original size for PC, different for mobile */
@media (max-width: 1024px) {
    .forbidden-zone-grid {
        padding: 1.5rem;
    }
    
    .h-games-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    .game-thumbnail {
        height: 200px;
    }
    
    .game-content {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .forbidden-zone-grid {
        padding: 1rem;
    }

    .zone-title {
        font-size: 2rem;
    }

    .games-search-container {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .games-search-box {
        padding: 0.4rem 0.8rem;
    }

    .games-search-input {
        font-size: 0.9rem;
    }

    .search-stats {
        font-size: 0.75rem;
    }

    .h-games-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .game-thumbnail {
        height: 160px;
    }
    
    .game-content {
        padding: 1rem;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .game-description {
        font-size: 0.8rem;
    }
    
    .game-meta {
        gap: 0.8rem;
    }
    
    .forbidden-content-modal-content {
        width: 95%;
        height: 90%;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .forbidden-zone-grid {
        padding: 0.8rem;
    }
    
    .zone-title {
        font-size: 1.5rem;
    }
    
    .h-games-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-thumbnail {
        height: 140px;
    }
    
    .game-content {
        padding: 0.8rem;
    }
    
    .game-title {
        font-size: 1rem;
    }
    
    .game-description {
        font-size: 0.75rem;
    }
    
    .game-meta {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .game-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .game-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Navigation Responsive */
@media (max-width: 1200px) {
    .nav-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }
    
    .nav-menu {
        gap: 0.3rem;
    }
}

@media (max-width: 992px) {
    .cyber-nav {
        height: 70px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-btn {
        padding: 0.45rem 0.5rem;
        font-size: 0.65rem;
        letter-spacing: 0.2px;
        border-width: 1px;
    }
    
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .cyber-nav {
        height: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        gap: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 80%;
        max-width: 300px;
        border-width: 2px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .section {
        min-height: calc(100vh - 60px);
    }
}

/* Android Small Screens - Extra adjustments */
@media (max-width: 480px) {
    .android-stage {
        min-height: 420px;
    }
    
    .android-shell {
        height: 380px;
        margin-top: 2rem;
    }
    
    .android-readout {
        min-height: auto;
        padding: 1rem;
    }
    
    .android-readout-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .android-metric {
        padding: 0.6rem;
    }
    
    .android-metric strong {
        font-size: 0.8rem;
    }
    
    .android-hotspot {
        width: 18px;
        height: 18px;
    }
    
    /* Zona Prohibida - Mobile optimization */
    .h-games-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .h-game-card {
        max-width: 100%;
    }
    
    .game-thumbnail {
        height: 160px;
    }
    
    .game-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .game-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 375px) {
    .android-shell {
        height: 340px;
    }
    
    .android-status-strip {
        gap: 0.3rem;
    }
    
    .android-state-chip {
        padding: 0.25rem 0.4rem;
        font-size: 0.55rem;
    }
    
    .android-readout-title {
        font-size: 1rem;
    }
    
    .android-readout-copy {
        font-size: 0.8rem;
    }
    
    .game-thumbnail {
        height: 140px;
    }
}

@media (max-width: 360px) {
    .game-thumbnail {
        height: 120px;
    }
    
    .game-content {
        padding: 0.6rem;
    }
    
    .game-title {
        font-size: 0.9rem;
    }
    
    .game-description {
        font-size: 0.7rem;
    }
    
    .game-meta {
        font-size: 0.7rem;
    }
    
    .android-shell {
        height: 320px;
    }
}

/* =============================================
   HATSUNE MIKU HOLOGRAM STYLES
   ============================================= */

/* Override android-shell for Miku */
.miku-shell {
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible !important;
}

.miku-bay {
    background: radial-gradient(ellipse at center bottom, rgba(0, 229, 255, 0.08) 0%, transparent 70%) !important;
}

/* Main SVG hologram */
.miku-svg {
    width: 100%;
    height: 100%;
    max-height: 480px;
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.7)) drop-shadow(0 0 25px rgba(57, 197, 187, 0.4));
    animation: mikuFloat 4s ease-in-out infinite, mikuHoloFlicker 8s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Miku projection image (portrait 548x1024).
   Reducimos la altura vertical para que quepa mejor y no estire el layout. */
.miku-projection-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 380px;
    overflow: hidden;
}

.miku-projection-img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 380px; /* limita la altura vertical de la imagen */
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.7)) drop-shadow(0 0 25px rgba(57, 197, 187, 0.4));
    animation: mikuFloat 4s ease-in-out infinite, mikuHoloFlicker 8s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Hologram float animation */
@keyframes mikuFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Subtle hologram flicker */
@keyframes mikuHoloFlicker {
    0%, 96%, 100% { opacity: 1; filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.7)) drop-shadow(0 0 25px rgba(57, 197, 187, 0.4)); }
    97% { opacity: 0.85; filter: drop-shadow(0 0 20px rgba(0, 229, 255, 1)) drop-shadow(0 0 40px rgba(57, 197, 187, 0.7)); }
    98% { opacity: 0.95; filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5)); }
    99% { opacity: 1; filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.9)) drop-shadow(0 0 35px rgba(255, 79, 195, 0.5)); }
}

/* Twin tail sway animations */
.miku-twintail-l {
    transform-origin: 70px 120px;
    animation: tailSwayL 3.5s ease-in-out infinite;
}
.miku-twintail-r {
    transform-origin: 150px 120px;
    animation: tailSwayR 3.5s ease-in-out infinite;
}

@keyframes tailSwayL {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-2deg); }
}
@keyframes tailSwayR {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(2deg); }
}

/* Base glow pulse */
.miku-base-glow {
    animation: baseGlowPulse 2s ease-in-out infinite;
}
.miku-base-ring {
    animation: baseGlowPulse 2s ease-in-out infinite reverse;
}
@keyframes baseGlowPulse {
    0%, 100% { opacity: 0.15; rx: 70px; }
    50% { opacity: 0.35; rx: 75px; }
}

/* Floating data particles */
.miku-particle-a { animation: particleOrbit 5s linear infinite; }
.miku-particle-b { animation: particleOrbit 7s linear infinite reverse; }
.miku-particle-c { animation: particleDrift 6s ease-in-out infinite; }
.miku-particle-d { animation: particleDrift 4s ease-in-out infinite reverse; }
.miku-particle-e { animation: particleOrbit 9s linear infinite; }
.miku-particle-f { animation: particleDrift 8s ease-in-out infinite; }

@keyframes particleOrbit {
    0%, 100% { opacity: 0.3; transform: translate(0, 0); }
    25% { opacity: 0.8; transform: translate(5px, -8px); }
    50% { opacity: 0.4; transform: translate(10px, 0); }
    75% { opacity: 0.9; transform: translate(5px, 8px); }
}
@keyframes particleDrift {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(-15px); }
}

/* Moving scanline effect */
.miku-scan-1 {
    animation: scanMove 3s linear infinite;
}
.miku-scan-2 {
    animation: scanMove 3s linear infinite 1.5s;
}
@keyframes scanMove {
    0% { transform: translateY(-400px); opacity: 0; }
    10% { opacity: 0.25; }
    90% { opacity: 0.25; }
    100% { transform: translateY(440px); opacity: 0; }
}

/* Status chip for holo - reuse existing android chip but with miku colors */
.miku-bay .android-state-chip--live {
    background: rgba(57, 197, 187, 0.2);
    border-color: #39c5bb;
    color: #39c5bb;
}

/* ------------------------------------------------ */
/* Optimizaciones de efectos                         */
/* ------------------------------------------------ */

/* Reducir animaciones continuas en dispositivos medios (3G, cores limitados).
   Ya existe .performance-low; esta regla baja tambien la carga del modo medio. */
.performance-medium #matrix-bg::after,
.performance-low #matrix-bg::after {
    display: none; /* Quita el scanline repetido */
}

.performance-medium #matrix-bg::before,
.performance-low #matrix-bg::before {
    animation: none; /* Detiene el scroll infinito de las rayas de advertencia */
    opacity: 0.15;
}

/* Respeta la preferencia del usuario "reducir movimiento":
   frena todas las animaciones/transiciones al instante */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ------------------------------------------------ */
/* Tarjeta de perfil con efecto glitch               */
/* ------------------------------------------------ */
.about-grid {
    align-items: start;
}

.glitch-profile-wrapper {
    --bg-color: #0d0d0d;
    --primary-color: #00f2ea;
    --secondary-color: #a855f7;
    --text-color: #e5e5e5;
    --font-family: "Fira Code", Consolas, "Courier New", Courier, monospace;
    --glitch-anim-duration: 0.4s;

    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-family);
    padding: 1rem;
}

.glitch-profile-card {
    position: relative;
    background-color: var(--bg-color);
    width: 19rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 242, 234, 0.2);
    box-shadow:
        0 0 1.5rem rgba(0, 242, 234, 0.1),
        inset 0 0 1rem rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glitch-profile-card .card-header-visual {
    height: 3.5rem;
    background: linear-gradient(
            45deg,
            rgba(0, 242, 234, 0.1),
            rgba(13, 13, 13, 0.8)
        ),
        radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
    border-bottom: 1px solid rgba(0, 242, 234, 0.1);
}

.glitch-profile-card .profile-avatar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0.75rem;
    z-index: 2;
    width: 5.5rem;
    height: 5.5rem;
    background: var(--bg-color);
    border-radius: 50%;
    padding: 0.9rem;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 242, 234, 0.3);
    transition: background-color 0.5s ease-in-out;
}

.glitch-profile-card .octocat-svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(0, 242, 234, 0.3));
}

.glitch-profile-card .profile-avatar:hover {
    background-color: var(--primary-color);
}
.glitch-profile-card .profile-avatar:hover .octocat-svg {
    fill: var(--bg-color);
    transform: scale(1.1) rotate(-5deg);
}

.glitch-profile-card .card-body {
    padding: 1.1rem;
    padding-top: 0;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.glitch-profile-card .profile-body {
    align-items: center;
    text-align: center;
    padding-top: 2.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.glitch-profile-card .profile-info {
    margin-bottom: 1.1rem;
}
.glitch-profile-card .profile-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    position: relative;
    cursor: pointer;
}
.glitch-profile-card .profile-title {
    font-size: 0.75rem;
    color: var(--primary-color);
    opacity: 0.8;
    margin: 0.25rem 0 0 0;
    letter-spacing: 0.1em;
}

.glitch-profile-card .profile-stats {
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 242, 234, 0.2);
    display: flex;
    justify-content: space-around;
}
.glitch-profile-card .stat-item {
    text-align: center;
    cursor: pointer;
    font-family: var(--font-family);
}
.glitch-profile-card .stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.6;
    letter-spacing: 0.1em;
    display: block;
}
.glitch-profile-card .stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.25rem;
    position: relative;
    font-family: var(--font-family);
}

.glitch-profile-card .glitch-btn {
    display: block;
    width: 100%;
    margin-top: 1.1rem;
    padding: 0.7em 1em;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
}

.glitch-profile-card .glitch-btn:hover,
.glitch-profile-card .glitch-btn:focus {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 1.5rem var(--primary-color);
    outline: none;
}

.glitch-profile-card .glitch-btn:active {
    transform: scale(0.97);
}
.glitch-profile-card .glitch-btn .btn-text {
    position: relative;
    z-index: 1;
    transition: opacity 0.2s ease;
}

/* --- Glitch Effects --- */
.glitch-profile-wrapper .profile-name:hover::before,
.glitch-profile-wrapper .profile-name:hover::after,
.glitch-profile-wrapper .stat-value:hover::before,
.glitch-profile-wrapper .stat-value:hover::after,
.glitch-profile-wrapper .glitch-btn:hover::before,
.glitch-profile-wrapper .glitch-btn:hover::after,
.glitch-profile-wrapper .glitch-btn:focus::before,
.glitch-profile-wrapper .glitch-btn:focus::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.glitch-profile-wrapper .profile-name:hover,
.glitch-profile-wrapper .stat-item:hover .stat-value {
    color: transparent;
}
.glitch-profile-wrapper .glitch-btn:hover .btn-text {
    opacity: 0;
}
.glitch-profile-wrapper .profile-name:hover::before,
.glitch-profile-wrapper .stat-value:hover::before,
.glitch-profile-wrapper .glitch-btn:hover::before,
.glitch-profile-wrapper .glitch-btn:focus::before {
    color: var(--secondary-color);
    animation: glitch-anim var(--glitch-anim-duration)
        cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.glitch-profile-wrapper .profile-name:hover::after,
.glitch-profile-wrapper .stat-value:hover::after {
    background-color: var(--bg-color);
    color: var(--primary-color);
    animation: glitch-anim var(--glitch-anim-duration)
        cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both;
}

.glitch-profile-wrapper .glitch-btn:hover::after,
.glitch-profile-wrapper .glitch-btn:focus::after {
    color: var(--bg-color);
    animation: glitch-anim var(--glitch-anim-duration)
        cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both;
}

@keyframes glitch-anim {
    0% {
        transform: translate(0);
        clip-path: inset(0 0 0 0);
    }
    20% {
        transform: translate(-0.3rem, 0.15rem);
        clip-path: inset(50% 0 20% 0);
    }
    40% {
        transform: translate(0.15rem, -0.1rem);
        clip-path: inset(20% 0 60% 0);
    }
    60% {
        transform: translate(-0.25rem, 0.1rem);
        clip-path: inset(80% 0 5% 0);
    }
    80% {
        transform: translate(0.25rem, -0.15rem);
        clip-path: inset(30% 0 45% 0);
    }
    100% {
        transform: translate(0);
        clip-path: inset(0 0 0 0);
    }
}

/* ------------------------------------------------ */
/* Vista dedicada HATSUNE MIKU BOT (estilo RGB Miku) */
/* ------------------------------------------------ */
.miku-bot-view {
    --miku-cyan: #00f2ea;
    --miku-teal: #4fd8c7;
    --miku-pink: #ff7bd5;
    --miku-purple: #a855f7;
    --miku-bg: #0d0d14;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: var(--font-secondary);
}

/* Hero */
.miku-bot-hero {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    background: var(--miku-bg);
    border: 1px solid rgba(0, 242, 234, 0.25);
    border-radius: 1.25rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 2rem rgba(0, 242, 234, 0.15);
}

.miku-bot-holo {
    flex: 0 0 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.miku-bot-img {
    max-width: 200px;
    max-height: 340px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(0, 242, 234, 0.6)) drop-shadow(0 0 30px rgba(255, 123, 213, 0.35));
    animation: mikuBotFloat 4s ease-in-out infinite;
}

@keyframes mikuBotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.miku-bot-name {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.08em;
    margin: 0 0 0.6rem;
    background: linear-gradient(90deg, var(--miku-cyan), var(--miku-pink), #fff, var(--miku-teal), var(--miku-purple), var(--miku-cyan));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: mikuRgbShift 5s linear infinite;
}

@keyframes mikuRgbShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.miku-bot-desc {
    color: #cfd6e4;
    font-size: 1rem;
    margin: 0 0 1rem;
    max-width: 60ch;
}

.miku-bot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.miku-tag {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--miku-cyan);
    border-radius: 4px;
    color: var(--miku-cyan);
    background: rgba(0, 242, 234, 0.06);
    text-transform: uppercase;
}

/* Enlaces del bot */
.miku-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
}

.miku-link {
    border: 1px solid rgba(255, 123, 213, 0.4) !important;
    background: rgba(255, 123, 213, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.miku-link:hover {
    transform: translateY(-4px);
    background: rgba(0, 242, 234, 0.12);
    box-shadow: 0 8px 26px rgba(0, 242, 234, 0.25);
}

/* Codigo QR del bot */
.miku-bot-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.25rem;
    border: 1px dashed rgba(0, 242, 234, 0.35);
    border-radius: 1rem;
    background: var(--miku-bg);
    box-shadow: inset 0 0 1.5rem rgba(0, 0, 0, 0.4);
}

.miku-qr-box {
    position: relative;
    padding: 0.6rem;
    background: #0d0d0d;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    background-image: linear-gradient(#0d0d0d, #0d0d0d), linear-gradient(90deg, var(--miku-cyan), var(--miku-pink), var(--miku-purple), var(--miku-cyan));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: mikuQrBorder 4s linear infinite;
}

@keyframes mikuQrBorder {
    0% { filter: drop-shadow(0 0 4px rgba(0, 242, 234, 0.5)); }
    33% { filter: drop-shadow(0 0 6px rgba(255, 123, 213, 0.6)); }
    66% { filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.6)); }
    100% { filter: drop-shadow(0 0 4px rgba(0, 242, 234, 0.5)); }
}

.miku-qr-img {
    display: block;
    width: 180px;
    height: 180px;
    max-width: 100%;
    border-radius: 0.4rem;
}

.miku-qr-text {
    color: #cfd6e4;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

/* ------------------------------------------------ */
/* Media Player estilo Win95 (Depool - Musica)       */
/* ------------------------------------------------ */
.win95-player {
    margin: 0 auto 1rem;
    width: 26em;
    max-width: 100%;
}
.win95-player .card-body {
    padding: 1em;
}
.win95-player .track-name {
    font-size: 0.82em;
}
.win95-player .ctrl-btn {
    width: 2.4em;
    height: 1.8em;
}

/* From Uiverse.io by reglobby */
.win95-card {
    --card-bg: #c0c0c0;
    --card-border-light: #ffffff;
    --card-border-dark: #808080;
    --card-border-darker: #404040;
    --card-titlebar: linear-gradient(90deg, #000080, #1084d0);
    --card-title-text: #ffffff;
    --card-text: #000000;
    --card-display-bg: #000000;
    --card-display-text: #00ff00;

    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 1em;
    width: 18em;
    background: var(--card-bg);
    border: 0.0625em solid;
    border-color: var(--card-border-light) var(--card-border-darker)
        var(--card-border-darker) var(--card-border-light);
    box-shadow:
        inset 0.0625em 0.0625em 0 var(--card-border-light),
        inset -0.0625em -0.0625em 0 var(--card-border-dark);
    max-width: 100%;
}

.win95-card .card-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25em 0.25em 0.25em 0.5em;
    background: var(--card-titlebar);
    color: var(--card-title-text);
}

.win95-card .card-title-text {
    font-size: 0.8125em;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.win95-card .card-controls {
    display: flex;
    gap: 0.125em;
}

.win95-card .card-btn {
    width: 1em;
    height: 0.875em;
    background: var(--card-bg);
    border: 0.0625em solid;
    border-color: var(--card-border-light) var(--card-border-darker)
        var(--card-border-darker) var(--card-border-light);
    cursor: pointer;
    position: relative;
    padding: 0;
    outline: none;
}

.win95-card .card-btn:active {
    border-color: var(--card-border-darker) var(--card-border-light)
        var(--card-border-light) var(--card-border-darker);
}

.win95-card .card-btn:focus {
    outline: 0.0625em dotted var(--card-text);
    outline-offset: -0.1875em;
}

.win95-card .card-btn-min::after {
    content: "";
    position: absolute;
    bottom: 0.125em;
    left: 50%;
    transform: translateX(-50%);
    width: 0.375em;
    height: 0.125em;
    background: var(--card-text);
}

.win95-card .card-btn-max::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.4375em;
    height: 0.375em;
    border: 0.0625em solid var(--card-text);
    border-top-width: 0.125em;
    background: transparent;
}

.win95-card .card-btn-close::before,
.win95-card .card-btn-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5em;
    height: 0.0625em;
    background: var(--card-text);
}

.win95-card .card-btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.win95-card .card-btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.win95-card .card-menubar {
    display: flex;
    gap: 0.125em;
    padding: 0.25em 0.375em;
    border-bottom: 0.0625em solid var(--card-border-dark);
}

.win95-card .menu-item {
    font-size: 0.75em;
    padding: 0.125em 0.5em;
    color: var(--card-text);
    cursor: pointer;
}

.win95-card .menu-item:hover {
    background: #000080;
    color: #ffffff;
}

.win95-card .card-body {
    padding: 0.75em;
}

.win95-card .player-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em;
    margin-bottom: 0.5em;
    background: var(--card-display-bg);
    border: 0.0625em solid;
    border-color: var(--card-border-dark) var(--card-border-light)
        var(--card-border-light) var(--card-border-dark);
    box-shadow: inset 0.0625em 0.0625em 0 var(--card-border-darker);
    min-height: 1.6em;
}

.win95-card .track-name {
    font-size: 0.6875em;
    font-family: monospace;
    color: var(--card-display-text);
    animation: blink-text 1s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes blink-text {
    50% {
        opacity: 0.7;
    }
}

.win95-card .track-time {
    font-size: 0.625em;
    font-family: monospace;
    color: var(--card-display-text);
    white-space: nowrap;
}

.win95-card .player-progress {
    position: relative;
    height: 0.75em;
    margin-bottom: 0.625em;
    background: var(--card-bg);
    border: 0.0625em solid;
    border-color: var(--card-border-dark) var(--card-border-light)
        var(--card-border-light) var(--card-border-dark);
    box-shadow: inset 0.0625em 0.0625em 0 var(--card-border-darker);
}

.win95-card .progress-fill {
    width: 21%;
    height: 100%;
    background: #000080;
    max-width: 100%;
}

.win95-card .progress-thumb {
    position: absolute;
    top: -0.0625em;
    left: 21%;
    width: 0.5em;
    height: 0.875em;
    background: var(--card-bg);
    border: 0.0625em solid;
    border-color: var(--card-border-light) var(--card-border-darker)
        var(--card-border-darker) var(--card-border-light);
    transform: translateX(-50%);
}

.win95-card .player-controls {
    display: flex;
    justify-content: center;
    gap: 0.25em;
}

.win95-card .ctrl-btn {
    width: 2em;
    height: 1.5em;
    background: var(--card-bg);
    border: 0.125em solid;
    border-color: var(--card-border-light) var(--card-border-darker)
        var(--card-border-darker) var(--card-border-light);
    cursor: pointer;
    position: relative;
    outline: none;
}

.win95-card .ctrl-btn:hover {
    background: #d4d4d4;
}

.win95-card .ctrl-btn:active {
    border-color: var(--card-border-darker) var(--card-border-light)
        var(--card-border-light) var(--card-border-darker);
}

.win95-card .ctrl-btn:focus {
    outline: 0.0625em dotted var(--card-text);
    outline-offset: -0.25em;
}

.win95-card .ctrl-prev::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 40%;
    border: 0.25em solid transparent;
    border-right: 0.3125em solid var(--card-text);
    transform: translate(-50%, -50%);
}

.win95-card .ctrl-prev::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 30%;
    width: 0.125em;
    height: 0.5em;
    background: var(--card-text);
    transform: translate(-50%, -50%);
}

.win95-card .ctrl-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    border: 0.3125em solid transparent;
    border-left: 0.375em solid var(--card-text);
    transform: translate(-50%, -50%);
}

.win95-card .ctrl-stop::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5em;
    height: 0.5em;
    background: var(--card-text);
    transform: translate(-50%, -50%);
}

.win95-card .ctrl-next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 60%;
    border: 0.25em solid transparent;
    border-left: 0.3125em solid var(--card-text);
    transform: translate(-50%, -50%);
}

.win95-card .ctrl-next::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 70%;
    width: 0.125em;
    height: 0.5em;
    background: var(--card-text);
    transform: translate(-50%, -50%);
}

.win95-card .card-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25em 0.375em;
    background: var(--card-bg);
    border-top: 0.0625em solid var(--card-border-light);
    box-shadow: inset 0 0.0625em 0 var(--card-border-dark);
}

.win95-card .status-text {
    font-size: 0.6875em;
    color: var(--card-text);
    padding: 0.125em 0.25em;
    border: 0.0625em solid;
    border-color: var(--card-border-dark) var(--card-border-light)
        var(--card-border-light) var(--card-border-dark);
    flex: 1;
}

.win95-card .status-vol {
    font-size: 0.625em;
    padding: 0.125em 0.375em;
    margin-left: 0.25em;
    background: var(--card-bg);
    border: 0.0625em solid;
    border-color: var(--card-border-dark) var(--card-border-light)
        var(--card-border-light) var(--card-border-dark);
    color: var(--card-text);
}

/* Control de volumen estilo Win95 */
.win95-card .player-volume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-top: 0.625em;
}

.win95-card .ctrl-vol-down,
.win95-card .ctrl-vol-up {
    width: 1.8em;
    height: 1.5em;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    color: var(--card-text);
    background: var(--card-bg);
    border: 0.125em solid;
    border-color: var(--card-border-light) var(--card-border-darker)
        var(--card-border-darker) var(--card-border-light);
    cursor: pointer;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.win95-card .ctrl-vol-down:hover,
.win95-card .ctrl-vol-up:hover {
    background: #d4d4d4;
}

.win95-card .ctrl-vol-down:active,
.win95-card .ctrl-vol-up:active {
    border-color: var(--card-border-darker) var(--card-border-light)
        var(--card-border-light) var(--card-border-darker);
}

.win95-card .vol-rail {
    position: relative;
    width: 8em;
    height: 0.9em;
    background: var(--card-bg);
    border: 0.0625em solid;
    border-color: var(--card-border-dark) var(--card-border-light)
        var(--card-border-light) var(--card-border-dark);
    box-shadow: inset 0.0625em 0.0625em 0 var(--card-border-darker);
    display: block;
}

.win95-card .vol-fill {
    display: block;
    height: 100%;
    width: 100%;
    background: #000080;
    max-width: 100%;
}

/* ------------------------------------------------ */
/* DEPOOL Portal / Dragon Wrap 2D                   */
/* ------------------------------------------------ */
.depool-portal {
    position: relative;
    width: min(520px, 85vw);
    height: min(520px, 85vw);
    margin: 1.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#depoolPortalCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.depool-portal-core {
    position: relative;
    z-index: 3;
    width: min(260px, 48vw);
    height: min(260px, 48vw);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(0, 229, 255, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 65% 65%, rgba(255, 43, 214, 0.18) 0%, transparent 60%),
        radial-gradient(circle, rgba(10, 10, 15, 0.9) 0%, rgba(5, 5, 8, 0.95) 100%);
    border: 2px solid rgba(0, 229, 255, 0.5);
    box-shadow:
        0 0 30px rgba(0, 229, 255, 0.25),
        0 0 60px rgba(255, 43, 214, 0.2),
        inset 0 0 40px rgba(0, 229, 255, 0.1);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.depool-portal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    opacity: 0.95;
    filter: contrast(1.1) brightness(1.05);
}
.portal-hud {
    position: absolute;
    z-index: 10;
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(0, 229, 255, 0.7);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
    pointer-events: none;
    line-height: 1.6;
}

.portal-hud--tl { top: 8px; left: 10px; }
.portal-hud--tr { top: 8px; right: 10px; text-align: right; }
.portal-hud__line { display: block; animation: portalHudFlicker 3s ease-in-out infinite; }
.portal-hud__val { color: #fff; }

@keyframes portalHudFlicker {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@media (max-width: 600px) {
    .portal-hud { font-size: 0.55rem; }
}

/* Hatsune Miku Cyber Radio de Depool: quitado para optimizar (evitaba que la sección se ampliara) */
.depool-miku-radio-frame,
.content-display:has(.depool-miku-radio-frame) {
    display: none !important;
}

.content-display:has(.depool-miku-radio-frame),
.music-display:has(.depool-miku-radio-frame),
.music-display:has(.depool-miku-radio-frame) .section-content {
    display: flex;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 700px) {
    .depool-miku-radio-frame {
        max-width: 100%;
        height: 250px;
        min-height: 0;
    }
}

/* Skills command deck */
.skills-command-deck {
    display: grid;
    gap: 1.25rem;
}

.skills-stack-header,
.skill-demos-header,
.skill-demo-top,
.skill-domain-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.skills-stack-header {
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(0, 229, 255, 0.35);
    background: linear-gradient(110deg, rgba(0, 229, 255, 0.08), rgba(0, 255, 122, 0.035) 45%, rgba(255, 43, 214, 0.06));
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.skills-kicker,
.skill-demo-index,
.skill-domain-code {
    color: var(--primary-cyan);
    font-family: var(--font-primary);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.skills-deck-title {
    margin: 0.35rem 0;
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 2.5vw, 1.65rem);
    letter-spacing: 0.08em;
}

.skills-deck-copy {
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.skills-signal,
.skill-demo-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(0, 255, 122, 0.4);
    color: var(--primary-cyan);
    font-family: var(--font-primary);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
}

.skills-signal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: skillsSignalPulse 1.8s ease-in-out infinite;
}

@keyframes skillsSignalPulse {
    50% { opacity: 0.4; transform: scale(0.75); }
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
}

.tech-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.75rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(3, 7, 15, 0.84);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tech-chip:hover {
    transform: translateY(-3px);
    border-color: var(--tech-color, var(--primary-cyan));
    box-shadow: 0 0 18px color-mix(in srgb, var(--tech-color, var(--primary-cyan)) 24%, transparent);
}

.tech-chip-mark {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 2.1rem;
    border: 1px solid var(--tech-color, var(--primary-cyan));
    color: var(--tech-color, var(--primary-cyan));
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 900;
}

.tech-chip strong,
.tech-chip small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tech-chip strong {
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 0.68rem;
}

.tech-chip small {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
}

.tech-chip--html { --tech-color: #ff7043; }
.tech-chip--js { --tech-color: #fcee0a; }
.tech-chip--react { --tech-color: #61dafb; }
.tech-chip--python { --tech-color: #4ec9b0; }
.tech-chip--php { --tech-color: #b8a9df; }
.tech-chip--docker { --tech-color: #2496ed; }

.skills-metrics-grid,
.skill-demos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.skill-domain-panel {
    padding: 1.1rem;
}

.skill-domain-head {
    align-items: flex-start;
    margin-bottom: 0.45rem;
}

.skill-domain-head .panel-title {
    margin-bottom: 0;
    font-size: 0.75rem;
}

.skill-domain-code {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.52rem;
}

.skill-domain-panel .skill {
    margin-top: 0.75rem;
}

.skill-domain-panel .skill-top {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.skill-domain-panel .meter {
    height: 5px;
}

.skill-demos-header {
    margin-top: 0.5rem;
}

.skill-demos-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.55), transparent);
}

.skill-demos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-demo-card {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(0, 229, 255, 0.35);
    background: rgba(2, 5, 12, 0.92);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.035);
}

.skill-demo-top {
    align-items: flex-start;
    margin-bottom: 0.65rem;
}

.skill-demo-top h3 {
    margin-top: 0.25rem;
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.skill-demo-status--cyan {
    border-color: rgba(0, 229, 255, 0.5);
    color: var(--secondary-green);
}

.skill-demo-frame {
    height: 260px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.25);
    background: #020205;
}

.skill-demo-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.skill-demo-card > p {
    margin-top: 0.65rem;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.78rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .tech-stack-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .skills-metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .skills-stack-header,
    .skill-demos-header,
    .skill-demo-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .skills-stack-header {
        padding: 1rem;
    }

    .skills-signal {
        align-self: stretch;
        justify-content: center;
    }

    .tech-stack-grid,
    .skill-demos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skill-demos-line {
        width: 100%;
        flex: none;
    }

    .skill-demo-frame {
        height: 220px;
    }
}

@media (max-width: 380px) {
    .tech-stack-grid,
    .skill-demos-grid {
        grid-template-columns: 1fr;
    }

    .tech-chip {
        padding: 0.65rem;
    }
}
