:root {
    --purple-primary: #7D3680;
    --purple-dark: #501d54;
    --yellow-pop: #FDBF33;
    --cream-bg: #FFF6E1;
    --white: #FFFFFF;
    --black-crt: #120914;
    --green-vhs: #33ff66;
    
    --font-pixel: 'VT323', monospace;
    --font-mono: 'Share Tech Mono', monospace;
    --font-sans: 'Space Grotesk', sans-serif;
}

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

html, body {
    cursor: none !important;
    background-color: var(--cream-bg);
    color: var(--purple-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: radial-gradient(var(--purple-primary) 1px, transparent 0);
    background-size: 24px 24px;
}

/* CURSOR ESTRELLA */
.custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    z-index: 2147483647;
    color: var(--yellow-pop);
    font-size: 28px;
    line-height: 1;
    text-shadow: 0 0 6px rgba(125, 54, 128, 0.8), 2px 2px 0px #000;
    transform: translate(-50%, -50%);
    font-family: "Segoe UI Symbol", "Noto Sans Symbols", var(--font-pixel);
}

/* SCANLINES DE PANTALLA CRT */
.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(18, 9, 20, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 900;
}

/* INTRO RETRO MTV 90S */
body {
    opacity: 1;
    transition: opacity 0.6s ease;
}

.retro-intro {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(255, 191, 51, 0.12), transparent 30%),
        linear-gradient(135deg, #180d1c 0%, #3b1a4a 35%, #0e0a18 100%);
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    width: min(86vw, 1000px);
    animation: introAppear 2.1s ease-in-out forwards;
}

.retro-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.07),
        rgba(255,255,255,0.07) 2px,
        transparent 2px,
        transparent 5px
    );
    mix-blend-mode: screen;
}

.intro-noise {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.25;
}

.intro-tv-style {
    gap: 16px;
}

.intro-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(54vw, 520px);
    padding: 28px 26px;
    border: 4px solid rgba(255, 191, 51, 0.95);
    background: rgba(20, 12, 28, 0.76);
    box-shadow: 0 0 0 6px rgba(255,255,255,0.08), 0 0 30px rgba(255, 191, 51, 0.18);
}

.intro-logo {
    width: min(38vw, 300px);
    height: auto;
    filter: drop-shadow(0 0 18px rgba(255, 196, 0, 0.8));
    animation: logoZoom 1.5s cubic-bezier(0.18,0.89,0.32,1.28) forwards;
}

.intro-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #fff;
    font-family: var(--font-pixel);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
}

.intro-text span:first-child {
    font-size: clamp(2rem, 4vw, 4.5rem);
    color: var(--yellow-pop);
    text-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.intro-text span:last-child {
    font-size: clamp(0.7rem, 1vw, 1.15rem);
    color: #f7dff7;
    letter-spacing: 6px;
}

body.loaded .retro-intro {
    opacity: 0;
    visibility: hidden;
}

@keyframes introAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(18px);
    }
    20% {
        opacity: 1;
    }
    78% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes logoZoom {
    0% {
        opacity: 0;
        transform: scale(0.55) rotate(-8deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.08) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes vinylSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.02);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@media (max-width: 768px) {
    .intro-content {
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 10vh 6vw;
    }

    .intro-vinyl-style {
        justify-content: center;
    }

    .vinyl-record {
        width: min(82vw, 520px);
    }

    .vinyl-center {
        width: 38%;
    }

    .intro-logo {
        width: 86%;
    }

    .intro-text {
        letter-spacing: 2px;
        text-align: center;
        max-width: 100%;
    }
}

/* BARRA SUPERIOR WINDOWS 95 */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--purple-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    font-family: var(--font-pixel);
    font-size: 20px;
    border-bottom: 3px solid var(--yellow-pop);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
}

.top-bar-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 18px;
}

.top-bar-main {
    min-height: 74px;
    justify-content: flex-start;
}

.mobile-brand-text {
    display: none;
}

.mobile-menu-toggle {
    display: none;
}

.top-bar-left,
.top-bar-right,
.top-bar-status,
.top-bar-clock {
    display: flex;
    align-items: center;
    min-width: 0;
}

.top-bar-left {
    flex-shrink: 0;
}

.top-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

.brand-button {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.top-bar-logo {
    height: 92px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

/* NAVEGACIÓN DESKTOP */
.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    flex-wrap: wrap;
}

.nav-menu-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    width: 100%;
}

.nav-item {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-pixel);
    font-size: clamp(16px, 1.35vw, 23px);
    color: rgba(255,255,255,0.95);
    transition: all 0.15s ease;
    min-height: 38px;
    white-space: nowrap;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.4px;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.04);
    color: var(--white);
    border-bottom-color: var(--yellow-pop);
    transform: none;
    box-shadow: none;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}

/* MARCO DE LA VENTANA PRINCIPAL */
.main-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 18px 90px;
}

.window-frame {
    background-color: var(--white);
    border: 4px solid var(--purple-primary);
    box-shadow: 8px 8px 0px var(--purple-primary);
    border-radius: 4px;
    overflow: hidden;
}

.window-header {
    background-color: var(--purple-primary);
    color: var(--white);
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 14px;
}

.win-btn {
    background-color: var(--cream-bg);
    border: 2px solid var(--purple-primary);
    color: var(--purple-primary);
    font-family: var(--font-pixel);
    width: 24px; height: 24px;
}

.win-btn.close { background-color: var(--yellow-pop); }

/* TELEVISOR Y ESTANTERÍA */
.crt-window {
    padding: 24px;
    background-color: var(--cream-bg);
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 24px;
}

.crt-tv {
    background-color: #8c8394;
    border: 6px solid #4a4252;
    border-radius: 20px;
    padding: 20px;
    box-shadow: inset -4px -4px 0px rgba(0,0,0,0.3);
}

.tv-screen {
    background-color: var(--black-crt);
    border: 12px solid #28222e;
    border-radius: 16px;
    height: 340px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vhs-osd {
    position: absolute;
    top: 16px; left: 16px; right: 16px;
    display: flex;
    justify-content: space-between;
    color: var(--green-vhs);
    font-family: var(--font-pixel);
    font-size: 24px;
    text-shadow: 0 0 8px var(--green-vhs);
}

.video-placeholder {
    text-align: center;
    color: var(--yellow-pop);
}

.video-placeholder .star-burst {
    font-size: 64px;
    animation: spin 6s infinite linear;
}

.video-placeholder h2 {
    font-family: var(--font-pixel);
    font-size: 38px;
}

/* VCR BOTONES Y SLOT */
.vcr-deck {
    background-color: #38313d;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.vhs-slot {
    background-color: #1a161d;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-align: center;
}

.vhs-tape-inserted {
    background-color: var(--purple-primary);
    color: var(--yellow-pop);
    font-family: var(--font-pixel);
    font-size: 20px;
    border: 2px dashed var(--yellow-pop);
}

.vcr-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.vcr-btn {
    background-color: var(--yellow-pop);
    color: var(--purple-primary);
    border: 3px solid var(--purple-primary);
    padding: 8px 4px;
    font-family: var(--font-pixel);
    font-size: 18px;
    font-weight: bold;
    box-shadow: 2px 2px 0px var(--purple-primary);
}

.vcr-btn.play { background-color: var(--purple-primary); color: var(--yellow-pop); }
.vcr-btn.rec { background-color: #ff4757; color: var(--white); }

/* ESTANTERÍA VHS */
.vhs-shelf {
    background-color: var(--white);
    border: 3px solid var(--purple-primary);
    padding: 16px;
    box-shadow: 4px 4px 0px var(--purple-primary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shelf-header {
    font-family: var(--font-pixel);
    font-size: 24px;
    border-bottom: 3px solid var(--yellow-pop);
    padding-bottom: 6px;
}

.tape-item {
    background-color: var(--cream-bg);
    border: 2px solid var(--purple-primary);
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.tape-item:hover, .tape-item.active {
    background-color: var(--purple-primary);
    color: var(--yellow-pop);
    border-color: var(--yellow-pop);
}

/* WIDGET MASCOTA */
.mascot-widget {
    position: fixed;
    bottom: 20px; right: 20px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    z-index: 1000;
}

.mascot-dialog {
    background-color: var(--white);
    border: 3px solid var(--purple-primary);
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 240px;
    font-size: 13px;
    box-shadow: 4px 4px 0px var(--purple-primary);
}

.mascot-avatar {
    width: 70px; height: 70px;
    background-color: var(--yellow-pop);
    border: 3px solid var(--purple-primary);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    position: relative;
    box-shadow: 4px 4px 0px var(--purple-primary);
}

.mascot-head {
    width: 44px; height: 36px;
    background-color: var(--purple-primary);
    border-radius: 6px;
    display: flex; justify-content: center; align-items: center;
}

.mascot-lens { color: var(--yellow-pop); font-size: 22px; }
.mascot-cap { position: absolute; top: -10px; right: -4px; font-size: 28px; transform: rotate(15deg); }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Layout del Manifiesto con Foto a la Izquierda */
.manifesto-split {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    background: #f0efe8;
    border: 2px solid #000;
    box-shadow: 4px 4px 0px #000;
    padding: 20px;
    margin: 0 auto 24px;
    min-height: 420px;
    width: 100%;
    max-width: none;
}

.group-photo-frame {
    flex: 0 0 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #7f3a8b;
    border: 3px solid #000;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2);
    overflow: hidden;
}

.crew-section-title {
    background: #7c3c8c;
    color: #f9d86b;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    padding: 10px 14px;
    margin: 0 0 18px;
    font-family: 'VT323', monospace;
    font-size: clamp(18px, 2vw, 28px);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crew-section-title h3 {
    margin: 0;
    font-size: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-container {
    background: #f4f1e8;
    padding: 18px 18px 24px;
    width: 100%;
    max-width: none;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    height: auto;
    background: #e0e0e0;
    border: 2px inset #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #444;
    text-align: center;
    overflow: hidden;
}

.photo-container {
    width: 100%;
    height: 100%;
}

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

.manifesto-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    min-height: 100%;
    max-width: none;
    margin: 0 auto;
    width: 100%;
}

/* Grid de Tarjetas Ampliadas (Max 2 por fila) */
.scrapbook-grid-large {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    justify-items: center;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    grid-auto-rows: 1fr;
}

.crew-card-large {
    background: #f8f8f8;
    border: 2px solid #000;
    box-shadow: 4px 4px 0px #000;
    padding: 18px 18px 16px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 540px;
    width: 100%;
    overflow: hidden;
}

.sticker-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7d3f8f;
    color: #f9d86b;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    font-family: 'VT323', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 10px;
    margin: -18px auto 10px;
    width: calc(100% + 8px);
    max-width: 100%;
    text-align: center;
}

.photo-frame-large {
    background: #dcdcdc;
    border: 2px inset #fff;
    aspect-ratio: 4 / 3;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    overflow: hidden;
}

.crew-card-large h3 {
    font-size: 22px;
    margin: 8px 0 4px 0;
    min-height: 28px;
}

.crew-card-large .crew-role {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    min-height: 44px;
}


.crew-card-large .crew-bio {
    font-size: 14px;
    margin: 10px 0 16px 0;
    color: #444;
    line-height: 1.4;
    flex: 1;
    min-height: 80px;
}

.mixtape-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1c1a2d;
    color: #ffeb7a;
    border: 2px solid #ff3b8a;
    padding: 10px 14px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 3px 3px 0 #000;
}

.mixtape-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 #000;
}

.mixtape-btn.is-playing {
    background: #2d1439;
    border-color: #29f0c9;
    color: #29f0c9;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .manifesto-split {
        flex-direction: column;
    }
    .group-photo-frame {
        width: 100%;
        flex: auto;
    }
    .scrapbook-grid-large {
        grid-template-columns: 1fr;
    }
}
/* Layout Principal Zine & Radio */
.zine-container {
    display: flex;
    gap: 20px;
    padding: 16px;
    background: #c0c0c0;
}

.zine-articles-feed {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Tarjeta de Artículo / Post */
.zine-post {
    background: #fff;
    border: 2px solid #000;
    box-shadow: 4px 4px 0px #000;
    padding: 16px;
}

.zine-badge {
    display: inline-block;
    background: #ffff00;
    border: 1px solid #000;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    margin-bottom: 8px;
}

.zine-title {
    font-size: 18px;
    margin: 4px 0 8px 0;
}

.zine-excerpt {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
}

.zine-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    border-top: 1px dashed #ccc;
    padding-top: 8px;
}

.read-more-btn {
    background: #e0e0e0;
    border: 1px solid #000;
    box-shadow: 2px 2px 0px #000;
    cursor: pointer;
    font-size: 11px;
    padding: 4px 8px;
}

/* Panel del Tocadiscos */
.turntable-panel {
    flex: 0.8;
}

.radio-box {
    background: #111;
    color: #00ffcc;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    padding: 16px;
    text-align: center;
}

.radio-header-bar {
    display: flex;
    justify-content: space-between;
    font-family: 'VT323', monospace;
    font-size: 16px;
    margin-bottom: 12px;
}

.live-indicator {
    color: #ff0055;
    font-weight: bold;
}

/* Tocadiscos / Disco */
.turntable-deck {
    width: 180px;
    height: 180px;
    background: #222;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #333;
    position: relative;
}

.vinyl-record {
    width: 160px;
    height: 160px;
    background: repeating-radial-gradient(#111, #111 2px, #000 3px, #000 4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-record.spinning {
    animation: spin 3s linear infinite;
}

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

.record-center {
    width: 50px;
    height: 50px;
    background: #ff0055;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-label {
    font-size: 8px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

/* Display de Pantalla */
.radio-display {
    background: #002211;
    border: 1px solid #00ffcc;
    padding: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    margin-bottom: 12px;
}

.radio-controls {
    display: flex;
    gap: 8px;
}

.social-panel {
    background: linear-gradient(180deg, #160f1e 0%, #25162d 100%);
    border: 3px solid #a54ae7;
    box-shadow: inset 0 0 0 3px rgba(255, 215, 0, 0.4), 6px 6px 0 rgba(26, 18, 33, 0.9);
    padding: 20px;
    color: #f3eaff;
}

.social-intro {
    text-align: center;
    margin-bottom: 18px;
}

.social-kicker {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 3px;
    color: #ffcc00;
    margin: 0 0 8px;
}

.social-intro h2 {
    margin: 0;
    font-family: 'VT323', monospace;
    font-size: clamp(28px, 4vw, 52px);
    color: #00ffcc;
    text-shadow: 3px 3px 0 #000;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 150px;
    padding: 18px 12px;
    background: linear-gradient(180deg, #3b2a52 0%, #1f162d 100%);
    border: 3px solid #ffcc00;
    box-shadow: 4px 4px 0 #000;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ff0055;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,0.2);
}

.social-name {
    font-family: 'VT323', monospace;
    font-size: 28px;
    color: #ffcc00;
}

.social-handle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #00ffcc;
    letter-spacing: 1px;
}

.radio-btn {
    flex: 1;
    background: #333;
    color: #fff;
    border: 1px solid #00ffcc;
    padding: 6px;
    font-size: 12px;
    cursor: pointer;
}

.radio-btn:hover {
    background: #00ffcc;
    color: #000;
}

@media (max-width: 768px) {
    .zine-container {
        flex-direction: column;
    }
}

/* Layout del Arcade */
.arcade-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 16px;
}

.arcade-card {
    background: #181824;
    color: #00ffcc;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    padding: 16px;
    text-align: center;
}

.arcade-card.full-width {
    grid-column: span 2;
}

.arcade-card h3 {
    font-size: 20px;
    color: #ff0055;
    margin-bottom: 8px;
    font-family: 'VT323', monospace;
}

.arcade-card p {
    font-size: 13px;
    color: #fff;
    margin-bottom: 14px;
}

/* Pantalla del Pacman */
.pacman-arcade-cabinet {
    background: #000;
    border: 4px solid #ff0055;
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: inset 0 0 10px rgba(255, 0, 85, 0.5);
}

.pacman-screen {
    background: #05050a;
    border: 2px solid #00ffcc;
    padding: 12px;
    position: relative;
    font-family: 'Share Tech Mono', monospace;
}

.pacman-hud {
    display: flex;
    justify-content: space-between;
    color: #ffff00;
    font-size: 14px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #00ffcc;
    padding-bottom: 6px;
}

.pacman-maze {
    height: 180px;
    background: #000;
    border: 2px solid #0000ff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    overflow: hidden;
}

.pacman-character {
    font-size: 32px;
    animation: pulse 0.8s infinite alternate;
}

.pacman-ghost {
    font-size: 28px;
    animation: float 1.5s infinite ease-in-out;
}

.dot-item {
    color: #ffff00;
    font-size: 24px;
}

.arcade-overlay-msg {
    margin-top: 10px;
    color: #ff0055;
    font-weight: bold;
    font-size: 16px;
    animation: blink 1s infinite;
}

/* Panel de Controles Arcade */
.arcade-controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px solid #333;
}

.d-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.d-pad-middle {
    display: flex;
    gap: 20px;
}

.arrow-btn {
    background: #222;
    color: #00ffcc;
    border: 2px solid #00ffcc;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-weight: bold;
}

.arrow-btn:hover {
    background: #00ffcc;
    color: #000;
}

.insert-coin {
    background: #ff0055;
    color: #fff;
    border: 2px solid #000;
    padding: 10px 16px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 3px 3px 0px #000;
}

.insert-coin:hover {
    background: #ffff00;
    color: #000;
}

/* Animaciones */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .arcade-container {
        grid-template-columns: 1fr;
    }
    .arcade-card.full-width {
        grid-column: span 1;
    }
}
.memory-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 16px 0;
    width: 100%;
}

.memory-card {
    height: 85px;
    background: #111;
    border: 2px solid #00ffcc;
    cursor: pointer;
    perspective: 1200px;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
    will-change: opacity, transform;
}

.card-front {
    background: #181824;
    color: #ff0055;
    font-size: 24px;
}

.card-back {
    background: #003322;
    color: #fff;
    transform: rotateY(180deg);
    border: 1px solid #00ffcc;
}

.card-back {
    position: relative;
    overflow: hidden;
}

.card-back .album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-back .cover-title {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: 10px;
    color: var(--yellow-pop);
    background: rgba(0,0,0,0.35);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.card-back span {
    font-size: 9px;
    color: #00ffcc;
    font-family: monospace;
    margin-top: 4px;
}
/* Espaciado vertical entre ventanas de juegos */
.window-frame {
    margin-bottom: 28px;
    width: 100%;
}

.arcade-single-game {
    background: #12121c;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.arcade-single-game h3 {
    color: #ff0055;
    font-family: 'VT323', monospace;
    font-size: 22px;
    margin-bottom: 8px;
}

.arcade-single-game p {
    font-size: 14px;
    color: #00ffcc;
    margin-bottom: 16px;
}
/* Asegura que el reverso empiece oculto */
.memory-card .card-back {
    transform: rotateY(180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.memory-card .card-front {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Efecto cuando se voltea o se encuentra pareja */
.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
}

/* Hover ligero para dar feedback (no aplica cuando ya emparejada) */
.memory-card:hover:not(.matched) {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

/* Animación visual al conseguir pareja */
.memory-card.matched {
    border-color: #ffff00 !important;
    box-shadow: 0 0 18px #ffff66, inset 0 0 8px rgba(255,255,102,0.12);
    cursor: default;
    animation: matched-pop 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes matched-pop {
    0% { transform: scale(1) translateY(0); }
    40% { transform: scale(1.08) translateY(-6px); }
    100% { transform: scale(1) translateY(0); }
}

/* Estado cuando ya hicieron match */
.memory-card.matched {
    border-color: #ffff00 !important;
    box-shadow: 0 0 10px #ffff00;
    cursor: default;
}
.card-back {
    background: #0a0a0f;
    color: #fff;
    transform: rotateY(180deg);
    border: 1px solid #00ffcc;
    padding: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Ajuste de la imagen de portada */
.card-back img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #ff0055;
    pointer-events: none;
}

.card-back span {
    font-size: 8px;
    color: #00ffcc;
    font-family: monospace;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-bar-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
}
/* Contenedor gris del marco */
.photo-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #222;
}

/* Regla para que la foto encaje perfectamente */
.member-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center; /* Centra el enfoque en los rostros */
    display: block;
}

/* Ajustes responsive globales */
img,
video {
    max-width: 100%;
}

@media (max-width: 1200px) {
    .nav-menu-group {
        gap: 10px;
    }

    .nav-item {
        font-size: clamp(13px, 1.6vw, 18px);
    }

    .scrapbook-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .main-container {
        padding-right: 0;
        padding-left: 0;
    }

    .window-frame {
        border-left: none;
        border-right: none;
    }

    .crt-window {
        grid-template-columns: 1fr;
    }

    .vhs-shelf {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .shelf-header {
        grid-column: 1 / -1;
    }

    .zine-container {
        grid-template-columns: 1fr;
    }

    .manifesto-split {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .top-bar {
        padding: 10px 12px;
    }

    .top-bar-main {
        min-height: 52px;
    }

    .nav-menu-group {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-item {
        white-space: normal;
    }

    .arcade-header-bar {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .game-status-bar {
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }

    .canvas-container {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    #pacmanCanvas {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .clipman-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .top-bar {
        gap: 8px;
        padding: 8px 12px;
    }

    .top-bar-row,
    .top-bar-meta {
        flex-wrap: nowrap;
    }

    .top-bar-main {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 52px;
    }

    .brand-button {
        justify-self: start;
    }

    .mobile-brand-text {
        display: block;
        justify-self: center;
        text-align: center;
        font-size: 1.1rem;
        letter-spacing: 2px;
        font-weight: 700;
        color: var(--white);
        text-transform: uppercase;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 38px;
        height: 38px;
        border: 2px solid var(--yellow-pop);
        background: rgba(255,255,255,0.05);
        border-radius: 4px;
        padding: 7px 6px;
        cursor: pointer;
        justify-self: end;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--white);
        border-radius: 2px;
    }

    .top-bar-center {
        width: 100%;
        display: none;
        grid-column: 1 / -1;
        padding-top: 8px;
    }

    .top-bar.is-open .top-bar-center {
        display: block;
    }

    .top-bar-meta {
        justify-content: center;
        align-items: center;
    }

    .top-bar-status,
    .top-bar-clock {
        justify-content: center;
        width: 100%;
    }

    .top-bar-logo {
        height: 42px;
    }

    .desktop-nav {
        padding: 12px 10px;
    }

    .nav-menu-group {
        display: none;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 8px;
        background: rgba(81, 24, 104, 0.96);
        border: 2px solid var(--yellow-pop);
        border-radius: 8px;
        padding: 8px;
    }

    .top-bar.is-open .nav-menu-group {
        display: grid;
    }

    .nav-item {
        min-width: 0;
        justify-content: flex-start;
        padding: 8px 10px;
        font-size: 13px;
        text-align: left;
        min-height: 40px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        white-space: normal;
    }

    .main-container {
        padding: 8px 0 80px;
    }

    .window-header {
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
    }

    .window-title {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .crt-window {
        padding: 12px;
        gap: 16px;
    }

    .crt-tv {
        padding: 10px;
        border-width: 4px;
    }

    .tv-screen {
        height: auto;
        aspect-ratio: 16 / 9;
        border-width: 8px;
    }

    .vhs-osd {
        top: 8px;
        left: 8px;
        right: 8px;
        gap: 8px;
        font-size: 16px;
    }

    .vhs-osd .vhs-quality {
        display: none;
    }

    .video-placeholder .star-burst {
        font-size: 44px;
    }

    .video-placeholder h2 {
        font-size: 29px;
    }

    .video-placeholder p {
        font-size: 12px;
    }

    .vcr-deck {
        padding: 10px;
    }

    .vcr-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .vcr-btn {
        font-size: 16px;
        min-height: 40px;
    }

    .vhs-shelf {
        grid-template-columns: 1fr;
    }

    .shelf-header {
        grid-column: auto;
    }

    .manifesto-split {
        padding: 14px;
    }

    .group-photo-frame {
        max-width: 100%;
    }

    .zine-container,
    .arcade-container {
        padding: 12px;
    }

    .arcade-controls-panel {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

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

    .mascot-widget {
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .mascot-dialog {
        max-width: min(220px, calc(100vw - 90px));
        padding: 8px 10px;
        font-size: 12px;
    }

    .mascot-avatar {
        width: 54px;
        height: 54px;
    }

    .mascot-head {
        width: 34px;
        height: 29px;
    }
}

@media (max-width: 620px) {
    .scrapbook-grid-large,
    .social-grid,
    .vhs-shelf {
        grid-template-columns: 1fr;
    }

    .vcr-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .window-header {
        font-size: 11px;
        padding: 8px 10px;
    }

    .window-title {
        max-width: 75%;
    }

    .beeper-form form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .arcade-logo-header .logo-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .game-status-bar {
        font-size: 0.72rem;
    }

    .clipman-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .top-bar {
        justify-content: center;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        justify-content: center;
        width: 100%;
    }

    .nav-menu-group {
        grid-template-columns: 1fr;
    }

    .nav-item {
        font-size: 12px;
        min-height: 36px;
    }

    .top-bar-logo {
        height: 54px;
    }

    .status-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    #clock {
        font-size: 0.95rem;
    }

    .window-controls {
        flex-shrink: 0;
    }

    .window-body {
        min-width: 0;
    }

    .tv-screen {
        border-width: 6px;
    }

    .vhs-osd {
        font-size: 13px;
    }

    .video-placeholder h2 {
        font-size: 24px;
    }

    .vcr-buttons {
        gap: 6px;
    }

    .vcr-btn {
        font-size: 14px;
        padding: 6px 2px;
    }

    .zine-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .radio-controls {
        flex-direction: column;
    }
}

@media (hover: none) {
    html, body,
    *,
    button,
    .nav-item,
    .tape-item {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none !important;
    }
}
.photo-frame-large {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame-large img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* O usa 'contain' si quieres ver la foto completa sin recortes */
    display: block;
}
/* AJUSTA EL CONTENEDOR AL TAMAÑO Y PROPORCIÓN DE LA FOTO */
.photo-frame-large {
    width: 100%;
    max-width: 320px; /* Ancho deseado de la tarjeta */
    aspect-ratio: 3 / 4; /* Le da forma vertical para que quepa la persona entera */
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* HACE QUE LA IMAGEN SE MUESTRE COMPLETA SIN RECORTAR */
.photo-frame-large img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Muestra la imagen 100% entera sin zoom */
    object-position: center;
    display: block;
}
/* 1. RECORTA TODO LO QUE SE SALGA DE LOS BORDES REDONDEADOS DE LA PANTALLA */
.tv-screen,
.crt-screen {
    position: relative !important;
    overflow: hidden !important; /* Corta el video exactamente en las esquinas del marco */
    border-radius: 12px; /* Ajusta este valor si los bordes de tu marco son más o menos curvos */
}

/* 2. ACOMODA EL VIDEO Y MANTIENE SU PROPORCIÓN SIN SALIRSE */
#crt-video,
.crt-video-element {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* O usa 'contain' si prefieres ver franjas negras sin recortes */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

/* 3. MANTIENE EL OVERLAY CON FILTRO CRT Y HUD SIEMPRE POR ENCIMA */
.crt-overlay,
.vhs-osd,
.vhs-hud {
    z-index: 10 !important;
    pointer-events: none !important;
}
/* 1. HACE EL MARCO MÁS ALTO Y VERTICAL PARA QUE LUZCA LA FOTO */
.photo-frame-large,
.photo-frame {
    width: 100% !important;
    max-width: 320px !important;
    height: 380px !important; /* Aumenta la altura para darle presencia vertical */
    margin: 10px auto !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* 2. AJUSTA LAS IMÁGENES COMPLETAS SIN RECORTAR NINGÚN DETALLE */
.photo-frame-large img,
.photo-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Muestra la imagen entera sin recortar el nombre ni la persona */
    object-position: center !important;
    display: block !important;
}

.mascot-dialog {
    position: relative;
    padding-right: 28px; /* Espacio reservado para la X */
}

.close-bubble-btn {
    position: absolute;
    top: 4px;
    right: 8px;
    background: transparent;
    border: none;
    color: #6b2d82;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-bubble-btn:hover {
    color: #ff0055;
}
/* CÍRCULO AMARILLO Y PERSONAJE */
.character-avatar {
    width: 70px;
    height: 70px;
    background-color: #ffb82b;
    border: 4px solid #6b2d82;
    box-shadow: 3px 3px 0px #6b2d82;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* IMAGEN DE LA MASCOTA DENTRO DEL CÍRCULO */
.mascot-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    display: block;
}
/* Barra principal morada unificada */
.top-bar {
  background-color: #512868; /* Color morado de base */
  border-bottom: 4px solid #fecb00; /* Línea amarilla inferior */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Contenedor central de los botones */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap; /* Permite adaptarse si la pantalla se reduce */
}

/* Estilo individual de los botones */
.nav-btn {
  background-color: #f7f3e8;
  color: #512868;
  border: 2px solid #512868;
  box-shadow: 3px 3px 0px #321343; /* Efecto pixel art / retro */
  padding: 6px 12px;
  font-family: 'Courier New', monospace; /* O tu fuente retro */
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Estado activo (botón amarillo) */
.nav-btn.active {
  background-color: #fca827;
  color: #512868;
}

.nav-btn:hover {
  filter: brightness(1.05);
}

/* Alineación de status y hora */
.status-container {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: monospace;
}

.status-badge {
  background-color: #fca827;
  color: #512868;
  padding: 2px 6px;
  font-weight: bold;
}
.hidden {
  display: none !important;
}

#game-area.puzzles-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-content: center !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 980px !important;
  box-sizing: border-box !important;
  gap: 12px !important;
  margin: 15px auto 0 !important;
}

.puzzle-card {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #333;
  min-width: 0;
  box-sizing: border-box;
}

.puzzle-card h4 {
  margin: 0 0 10px 0;
  font-size: 0.8rem;
  color: #00e054;
  font-family: monospace;
  text-align: center;
}

.puzzle-board {
  display: grid !important;
  width: min(100%, 210px);
  aspect-ratio: 2 / 3;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  background-color: #000;
  padding: 3px;
  border: 1px solid #555;
  box-sizing: border-box;
}

.tile {
  width: 100% !important;
  height: 100% !important;
  background-size: 300% 300% !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
  box-sizing: border-box;
}

/* Quita los nth-child y usa el ID del tablero dentro de cada tarjeta */

#board-1 .tile {
  background-image: url('Imagenes/Pulp\ Fiction\ \(1994\).png') !important;
}

#board-2 .tile {
  background-image: url('Imagenes/The\ Nightmare\ Before\ Christmas.png') !important;
}

#board-3 .tile {
  background-image: url('Imagenes/Sunrise.png') !important;
}

.tile:hover {
  filter: brightness(1.2);
}

.tile.selected {
  outline: 2px solid #00e054 !important;
  z-index: 2;
}

@media (max-width: 900px) {
  #game-area.puzzles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .puzzle-card {
    max-width: 220px;
  }
}

@media (max-width: 700px) {
  #game-area.puzzles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .puzzle-card {
    max-width: 240px;
  }
}

@media (max-width: 420px) {
  .puzzle-card {
    padding: 8px;
    max-width: 100%;
  }

  .puzzle-card h4 {
    font-size: 0.7rem;
  }

  .game-reset-btn {
    width: 100%;
    padding: 6px 10px;
  }
}

.game-reset-btn {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  padding: 4px 10px;
  cursor: pointer;
  margin-top: 8px;
  font-size: 0.75rem;
  font-family: inherit;
}

.letterboxd-card {
  background: #14181c;
  color: #ffffff;
  border: 1.5px solid #00e054;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  font-family: monospace;
}

.lb-dots { color: #00e054; }
.lb-stars { color: #00e054; font-size: 0.9rem; margin: 2px 0; }
.lb-score { font-weight: bold; font-size: 0.9rem; }
.arcade-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 780px;
  margin: 0 auto 10px auto;
}

.arcade-logo-header .logo-text {
  font-family: 'Impact', monospace, sans-serif;
  font-size: 1.4rem;
  color: #ffea00;
  text-shadow: -2px -2px 0 #ff0055, 2px 2px 0 #0055ff;
  border: 2px solid #ff0055;
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 2px;
}

.game-status-bar {
  font-family: monospace;
  color: #00e054;
  font-size: 0.95rem;
  display: flex;
  gap: 20px;
}

.canvas-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

#pacmanCanvas {
  background: #000;
  border: 3px solid #0055ff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 85, 255, 0.4);
}

.arcade-footer {
  text-align: center;
  margin-top: 12px;
}

.clipman-controls {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.clipman-dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.clipman-dpad-row {
  display: flex;
  gap: 8px;
}

.clipman-btn {
  width: 52px;
  height: 52px;
  border: 2px solid #00ffcc;
  background: rgba(11, 18, 28, 0.95);
  color: #00ffcc;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clipman-btn:active,
.clipman-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.45);
}
/* Previene conflictos con la vista general de la web */
.mascot-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

.mascot-viewer-box, 
.mascot-tech-card {
  background: rgba(20, 10, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
}

.mascot-viewer-box {
  flex: 1 1 350px;
  max-width: 480px;
  text-align: center;
}

.mascot-tech-card {
  flex: 1 1 300px;
  max-width: 400px;
}

.mascot-title, 
.mascot-card-title {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 15px;
  color: #f2c94c;
  letter-spacing: 1px;
}

#mascot-360-container {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  cursor: grab;
  user-select: none;
}

#mascot-360-container:active {
  cursor: grabbing;
}

#mascot-frame {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.mascot-hint {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 10px;
}

/* Tabla de Ficha Técnica */
.mascot-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.mascot-table th, 
.mascot-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.mascot-table th {
  color: #f2c94c;
  width: 35%;
}
/* Contenedor principal de la ventana (el marco morado exterior) */
.history-window {
  width: 100%;
  max-width: 1100px; /* Asegúrate de que este valor coincida con el ancho de las ventanas inferiores */
  margin: 0 auto 30px auto; /* Centra la ventana horizontalmente */
  box-sizing: border-box;
}

/* Tarjeta gris interna donde va la imagen y el texto */
.history-card-content {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center; /* Centra verticalmente la foto y el texto */
  justify-content: center; /* Alinea y distribuye el contenido centrado */
  gap: 30px; /* Espaciado entre la fotografía y el bloque de texto */
  padding: 25px;
  box-sizing: border-box;
}

/* Ajuste proporcional para la columna de imagen y de texto */
.history-card-content .photo-container {
  flex: 0 0 350px; /* Mantiene un tamaño fijo y proporcional para la imagen */
  max-width: 100%;
}

.history-card-content .text-container {
  flex: 1; /* Permite que el texto tome el espacio restante de forma equilibrada */
}
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Silkscreen&family=VT323&display=swap');

/* Contenedor Principal Expandido */
.paint-window-container {
  width: 95%;              /* Ocupa casi todo el ancho disponible */
  max-width: 1200px;        /* Ampliado de 800px a 1200px */
  margin: 20px auto;
  border: 4px solid #000;
  background-color: #fce4ec;
  font-family: 'VT323', monospace;
  box-shadow: 8px 8px 0px #000;
}

.paint-top-header {
  background-color: #6b2d5c;
  color: #ffffff;
  text-align: center;
  padding: 10px;
  border-bottom: 3px solid #000;
}

.pixel-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 22px;          /* Texto del título más grande */
  letter-spacing: 2px;
}

.paint-app-frame {
  background-color: #f7d6e0;
  border: 3px solid #fff;
  padding: 6px;
}

.paint-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1cfdb;
  border-bottom: 3px solid #000;
  padding: 6px 12px;
}

.paint-menu-bar span {
  margin-right: 18px;
  font-size: 18px;          /* Menú superior más legible */
  cursor: pointer;
}

.paint-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.retro-icon {
  font-size: 16px;
  margin-right: 12px;
  color: #d81b60;
}

.win-btn {
  width: 22px;
  height: 20px;
  background: #e0e0e0;
  border: 2px solid #000;
  font-size: 12px;
  text-align: center;
  line-height: 16px;
  font-weight: bold;
  cursor: pointer;
}

/* Área de trabajo expandida */
.paint-workspace {
  display: flex;
  border: 3px solid #000;
  background-color: #fbf8e7;
  min-height: 560px;        /* Mayor altura vertical */
}

/* Toolbar lateral más alta y ancha */
.paint-toolbar {
  width: 64px;
  background-color: #f1cfdb;
  border-right: 3px solid #000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px;
  align-content: start;
}

.tool-btn {
  width: 26px;
  height: 26px;
  background: #fff;
  border: 2px solid #000;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.tool-btn:hover {
  background: #fce4ec;
}

/* Canvas expandido */
.paint-canvas {
  flex: 1;
  position: relative;
  padding: 25px 20px 60px 20px; /* Margen inferior para que no choque con NEXT PLAYER */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* Fila de Avatares / Muñequitos Más Grandes */
.team-avatars-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.avatar-card {
  cursor: pointer;
  filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.15));
  transition: transform 0.15s ease;
}

.avatar-card img {
  height: 180px;            /* Muñecos aumentados de 140px a 180px */
  object-fit: contain;
  image-rendering: pixelated;
}

.avatar-card:hover {
  transform: translateY(-6px);
}

.avatar-card.active img {
  filter: drop-shadow(0px 0px 10px #9c27b0);
}

/* Tarjeta Pop-up de Información Más Grande y Espaciosa */
.info-popup-card {
  width: 90%;
  max-width: 650px;         /* Ampliada de 450px a 650px */
  margin: 20px auto 0 auto;
  background-color: #ffffff;
  border: 3px solid #000;
  border-radius: 8px;
  box-shadow: 6px 6px 0px #6b2d5c;
  overflow: hidden;
}

.popup-inner-content {
  display: flex;
  padding: 16px;
  gap: 18px;
  align-items: center;
}

.popup-photo-box {
  width: 140px;             /* Foto más grande */
  height: 130px;
  background: #6b2d5c;
  border: 2px solid #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popup-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-text-box {
  text-align: left;
}

.popup-text-box h3 {
  margin: 0;
  font-family: 'Press Start 2P', cursive;
  font-size: 18px;          /* Nombre de integrante más grande */
  color: #6b2d5c;
}

.popup-text-box h4 {
  margin: 6px 0 8px 0;
  font-size: 17px;
  color: #333;
  font-weight: bold;
}

.popup-text-box p {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #222;
}

/* Botón FAV tipo banner */
.fav-banner-btn {
  width: 100%;
  background-color: #2b1d3a;
  color: #ffffff;
  border: none;
  border-top: 3px solid #000;
  padding: 10px;
  font-family: 'Press Start 2P', cursive;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease;
}

.fav-banner-btn:hover {
  background-color: #4a3260;
}

.fav-banner-btn.is-playing {
  background-color: #d81b60;
}

/* Botón NEXT PLAYER */
.next-player-control {
  position: absolute;
  bottom: 12px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  cursor: pointer;
}

.next-player-control .hearts {
  color: #e91e63;
  font-size: 14px;
}

.next-btn {
  background: none;
  border: none;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  color: #000;
  cursor: pointer;
}

/* Paleta de Colores abajo */
.paint-color-palette {
  display: flex;
  align-items: center;
  background-color: #f1cfdb;
  border: 3px solid #000;
  border-top: none;
  padding: 6px 10px;
  gap: 10px;
}

.color-box {
  width: 30px;
  height: 30px;
  border: 2px inset #fff;
  background: #000;
}

.colors-grid {
  display: grid;
  grid-template-columns: repeat(8, 18px);
  grid-template-rows: repeat(2, 14px);
  gap: 2px;
}

.colors-grid span {
  border: 1px solid #777;
  cursor: pointer;
}

/* Barra de Estado */
.paint-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 10px;
  background: #f1cfdb;
  border-top: 2px solid #000;
}
