:root {
    --neon-green: #39ff14;
    --neon-blue: #00f2ff;
    --neon-pink: #ff007f;
    --neon-red: #ff003c;
    --neon-purple: #bc13fe;
    --neon-white: #f1f1f1;
    --console-bg: #1a1a1d;
    --alien-font: 'Orbitron', sans-serif;
    --ui-font: 'Inter', sans-serif;
}
.txth {
    color: var(--neon-green);
    font-size: 1.3em;        
    text-decoration: none;
}
.txta {
    color: var(--neon-white);
    font-size: 0.85em;       
    text-decoration: none;
}

/* Screen RESET DE ESPECIFICIDAD PARA EVITAR CONFLICTOS CON WP */
#vga-console-container {
    width: 100%;
    background: transparent;
    margin: 0 auto;
    padding: 0;
    overflow: hidden; /* Elimina scroll interno */
    display: flex;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#vga-console-container.rotated-90 {
    transform: rotate(90deg);
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Consola */
#console-body {
    width: 120%;
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    background: linear-gradient(145deg, #222225, #121214);
    padding: 20px 10px 10px 10px;
    border-radius: 40px;
    /* Reducimos la sombra para ganar espacio */
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.5);*/ 
    border: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    max-width: 1100px; /* Ajuste para evitar scroll X */
    height: 520px;
}
#console-logo {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--neon-green); /*color: #39ff14;*/
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    font-weight: 900;
    opacity: 0.8;
    text-transform: uppercase; /*prueba*/
    padding: 5px;
}
.controller-left {
    width: 120px; 
    height: 90%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around;
    /* justify-content: space-between;*/
    align-items: center;
    /*flex-shrink: 0;*/
}
#screen-frame {
    flex-grow: 1;
    height: 100%;
    background: #000;
    border-radius: 10px;
    /*position: relative;*/
    /*overflow: hidden;*/
    border: 4px solid #080808; border-radius: 10px;
    display: flex;
    flex-direction: column;
    /*margin: 0 8px;*/
}
#screen-content {
    flex-grow: 1;
    /*background: radial-gradient(circle at center, #0f0f12 0%, #000 100%);*/
    background: radial-gradient(circle at center, #0a0a0c 0%, #000 100%);
    display: flex;
    flex-direction: column;
    color: #fff !important;
}
#screen-content p, 
#screen-content div, 
#screen-content span {
    color: #fff !important;
}
.controller-right {
    width: 120px; 
    height: 90%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around;
    /* justify-content: space-between;*/
    align-items: center;
    /*flex-shrink: 0;*/
}

.d-pad-cluster {
    display: grid;
    /*grid-template-columns: repeat(3, 32px);*/
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 32px);
    gap: 6px;
    justify-content: center;
}
.btn-v {
    width: 32px;
    height: 32px;
    background: transparent; 
    border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
    color: rgba(255,255,255,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    /*font-weight: 800;*/
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.btn-v:active, .btn-v.active {
    background: rgba(57, 255, 20, 0.05);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
    transform: scale(0.92);
}
#touchpad-area {
    width: 100px;
    height: 75px;
    position: relative;
    background: transparent;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s;
    cursor: crosshair;
}
.touchpad-area:active .touchpad-area.active {
    background: rgba(57, 255, 20, 0.05);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
    transform: scale(0.92);
}

#dashboard {
    height: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    overflow-y: auto;
}
.game-slot {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.game-slot:hover .game-card {  /* era: .app-card */
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.game-card {
    background-color: transparent;
    border: 0px;
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-label {
    width: 100%;
    margin-top: 5px;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--neon-green);
    /*text-transform: uppercase;*/
    text-align: left;
    font-family: var(--ui-font);
}
.btn-o {
    background: transparent; 
    border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
    color: rgba(255,255,255,0.3);
    display: flex;
    font-size: 10px;
    transition: all 0.1s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.btn-o:active, .btn-o.active {
    background: rgba(57, 255, 20, 0.05);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
    transform: scale(0.92);
}

/* Juegos */
.game-layer {
    width: 100%;
    height: 100%;
    border: 0px;
}
.score-panel {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    font-size: 9px;
    font-family: var(--alien-font);
    color: var(--neon-green);
    background: rgba(0,0,0,0.6);
    border-bottom: 1px solid rgba(57,255,20,0.15);
    letter-spacing: 2px;
}

.canvas-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    width: 100%; height: 90%;
    /*min-height: 0; /* crítico para flex */
}