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

:root {
    --primary: #e94560;
    --primary-dark: #c73e54;
    --secondary: #0f3460;
    --accent: #16213e;
    --neon-blue: #00d4ff;
    --neon-purple: #a855f7;
    --neon-green: #4ade80;
    --neon-yellow: #facc15;
    --dark: #0a0a0f;
    --darker: #050508;
    --light: #eaeaea;
    --gray: #888;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.3;
}

/* Background Canvas */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Main Hub Container */
.game-hub {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 0 2rem 2rem;
}

/* Header */
.hub-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.95) 0%, transparent 100%);
    z-index: 100;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
    transform: translateX(-5px);
}

.player-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

.stat-item i {
    color: var(--neon-blue);
    font-size: 1.2rem;
}

.stat-value {
    color: var(--neon-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* Title Section */
.title-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 4rem;
    background: radial-gradient(ellipse at center, rgba(5, 5, 8, 0.7) 0%, transparent 70%);
}

.title-container {
    margin-bottom: 3rem;
}

.subtitle-glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 8px;
    color: var(--neon-blue);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--neon-blue), 0 0 30px rgba(0, 0, 0, 0.9);
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--neon-purple) 50%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(233, 69, 96, 0.8)); }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-blue);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes glitch-anim {
    0% { clip: rect(17px, 9999px, 94px, 0); }
    10% { clip: rect(33px, 9999px, 18px, 0); }
    20% { clip: rect(75px, 9999px, 63px, 0); }
    30% { clip: rect(60px, 9999px, 35px, 0); }
    40% { clip: rect(85px, 9999px, 73px, 0); }
    50% { clip: rect(25px, 9999px, 15px, 0); }
    60% { clip: rect(50px, 9999px, 100px, 0); }
    70% { clip: rect(5px, 9999px, 45px, 0); }
    80% { clip: rect(90px, 9999px, 55px, 0); }
    90% { clip: rect(40px, 9999px, 80px, 0); }
    100% { clip: rect(70px, 9999px, 25px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    10% { clip: rect(15px, 9999px, 60px, 0); }
    20% { clip: rect(85px, 9999px, 25px, 0); }
    30% { clip: rect(45px, 9999px, 90px, 0); }
    40% { clip: rect(30px, 9999px, 70px, 0); }
    50% { clip: rect(95px, 9999px, 40px, 0); }
    60% { clip: rect(10px, 9999px, 85px, 0); }
    70% { clip: rect(55px, 9999px, 35px, 0); }
    80% { clip: rect(75px, 9999px, 50px, 0); }
    90% { clip: rect(20px, 9999px, 95px, 0); }
    100% { clip: rect(60px, 9999px, 15px, 0); }
}

.tagline {
    margin-top: 1.5rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: var(--light);
    min-height: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.8);
}

.cursor {
    animation: blink 1s step-end infinite;
}

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

.press-start {
    margin-top: 2rem;
}

.press-start .blink {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--light);
    animation: blinkText 1.5s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.8);
}

@keyframes blinkText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.scroll-indicator {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.scroll-indicator i {
    color: var(--primary);
    font-size: 1rem;
    animation: scrollBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
}

.scroll-indicator i:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator i:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(5px); opacity: 1; }
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 3px;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.section-header i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    max-width: 200px;
}

/* Games Section */
.games-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.85) 0%, rgba(5, 5, 8, 0.7) 50%, rgba(5, 5, 8, 0.85) 100%);
    border-radius: 20px;
}

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

/* Game Cards */
.game-card {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 52, 96, 0.3) 0%, rgba(22, 33, 62, 0.5) 100%);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--neon-purple), var(--neon-blue));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow:
        0 20px 60px rgba(233, 69, 96, 0.3),
        0 0 100px rgba(233, 69, 96, 0.1),
        inset 0 0 60px rgba(233, 69, 96, 0.05);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.game-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.game-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
    transition: all 0.3s ease;
}

.game-card:hover .game-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.6);
}

.game-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--light);
}

.game-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag.survival { border-color: var(--neon-green); color: var(--neon-green); }
.tag.horror { border-color: var(--primary); color: var(--primary); }
.tag.puzzle { border-color: var(--neon-blue); color: var(--neon-blue); }
.tag.mystery { border-color: var(--neon-purple); color: var(--neon-purple); }

.game-meta {
    margin-bottom: 1.5rem;
}

.difficulty .label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.difficulty-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 0.3rem;
}

.difficulty-bars .bar {
    width: 30px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.difficulty-bars .bar.active {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-yellow), var(--primary));
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.difficulty-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

.platform-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.platform-badge.desktop {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background: rgba(0, 200, 255, 0.08);
}

.platform-badge.mobile {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.08);
}

.platform-badge i {
    font-size: 0.7rem;
}

.game-card:hover .platform-badge.desktop {
    background: rgba(0, 200, 255, 0.15);
    box-shadow: 0 0 8px rgba(0, 200, 255, 0.3);
}

.game-card:hover .platform-badge.mobile {
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.game-card:hover .play-btn {
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--primary) 100%);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.5);
    transform: scale(1.05);
}

.play-btn.locked {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* Coming Soon Card */
.game-card.coming-soon {
    cursor: not-allowed;
}

.game-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
}

.game-card.coming-soon .game-icon {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    box-shadow: 0 10px 30px rgba(15, 52, 96, 0.4);
}

.game-card.coming-soon:hover .game-icon {
    transform: none;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-radius: 20px;
    z-index: 10;
}

.locked-overlay .lock-icon {
    width: 60px;
    height: 60px;
    background: rgba(233, 69, 96, 0.2);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(233, 69, 96, 0); }
}

.locked-overlay span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 2px;
}

/* Empty Slot */
.game-card.empty-slot {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    cursor: default;
}

.game-card.empty-slot:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.game-card.empty-slot .card-content {
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    margin: 0 auto 1.5rem;
}

.empty-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    line-height: 1.8;
}

.loading-bar {
    width: 150px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 1.5rem auto 0;
    overflow: hidden;
}

.loading-progress {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--neon-purple));
    border-radius: 2px;
    animation: loadingAnim 2s ease-in-out infinite;
}

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

/* Origins Section */
.origins-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 2rem auto;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.85) 0%, rgba(5, 5, 8, 0.7) 50%, rgba(5, 5, 8, 0.85) 100%);
    border-radius: 20px;
}

.origins-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.quote-block {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.1) 0%, rgba(233, 69, 96, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--neon-purple);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.quote-block blockquote {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--light);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quote-caption {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--neon-purple);
    font-weight: 500;
}

.origins-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.origins-text p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.origins-text .highlight {
    color: var(--neon-blue);
    font-weight: 600;
}

.origins-text .note {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.origins-text .note i {
    color: var(--neon-blue);
    font-size: 1.2rem;
}

.legacy-downloads {
    background: linear-gradient(145deg, rgba(15, 52, 96, 0.3) 0%, rgba(22, 33, 62, 0.5) 100%);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
}

.legacy-downloads h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--light);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2rem;
}

.legacy-downloads h3 i {
    color: var(--primary);
    margin-right: 0.75rem;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: var(--neon-green);
    background: rgba(74, 222, 128, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.2);
}

.download-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--neon-yellow);
    flex-shrink: 0;
}

.download-card:hover .download-icon {
    background: linear-gradient(135deg, var(--neon-green) 0%, #22c55e 100%);
    color: white;
}

.download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.download-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light);
}

.download-meta {
    font-size: 0.8rem;
    color: var(--gray);
}

.download-btn {
    width: 40px;
    height: 40px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid var(--neon-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-green);
    transition: all 0.3s ease;
}

.download-card:hover .download-btn {
    background: var(--neon-green);
    color: white;
}

.legacy-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.legacy-note i {
    color: var(--neon-yellow);
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.85) 0%, rgba(5, 5, 8, 0.7) 50%, rgba(5, 5, 8, 0.85) 100%);
    border-radius: 20px;
}

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

.stat-card {
    background: linear-gradient(145deg, rgba(15, 52, 96, 0.2) 0%, rgba(22, 33, 62, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.stat-card .stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-card .stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.stat-card .stat-name {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.hub-footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.footer-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-content .highlight {
    color: var(--primary);
    font-weight: 600;
}

.footer-note {
    font-size: 0.8rem !important;
    opacity: 0.6;
}

.konami-hint {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.konami-hint:hover {
    color: var(--primary);
}

.konami-hint i {
    font-size: 1rem;
}

/* Easter Egg Overlay */
.easter-egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.easter-egg-overlay.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

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

.easter-egg-content {
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.easter-egg-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--neon-green);
    text-shadow: 0 0 30px var(--neon-green);
    margin-bottom: 1rem;
}

.easter-egg-content p {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.achievement {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(250, 204, 21, 0.05) 100%);
    border: 1px solid var(--neon-yellow);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.achievement i {
    font-size: 2rem;
    color: var(--neon-yellow);
}

.achievement span {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-yellow);
    font-size: 1rem;
}

.easter-egg-content button {
    padding: 1rem 3rem;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.easter-egg-content button:hover {
    background: var(--neon-purple);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
    transform: scale(1.05);
}

/* Toggle Buttons */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.anim-toggle,
.sound-toggle {
    width: 45px;
    height: 45px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    color: var(--neon-blue);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anim-toggle:hover,
.sound-toggle:hover {
    background: var(--neon-blue);
    color: var(--darker);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: scale(1.1);
}

.anim-toggle.paused,
.sound-toggle.muted {
    background: rgba(136, 136, 136, 0.1);
    border-color: var(--gray);
    color: var(--gray);
}

.anim-toggle.paused:hover,
.sound-toggle.muted:hover {
    background: var(--gray);
    color: var(--darker);
    box-shadow: 0 0 20px rgba(136, 136, 136, 0.3);
}

/* Game Preview on Hover */
.game-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    z-index: 5;
}

.game-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.game-preview .preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 8, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.game-preview .preview-overlay i {
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.game-preview .preview-overlay span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--light);
    letter-spacing: 2px;
}

.game-card:hover .game-preview {
    opacity: 1;
    transform: translateY(0);
}

.game-card:hover .card-content {
    transform: translateY(60px);
}

.game-card .card-content {
    transition: transform 0.4s ease;
}

/* Adjust card for preview space */
.game-card[data-preview] {
    padding-top: 2rem;
    min-height: 480px;
}

.game-card.coming-soon[data-preview] .locked-overlay {
    border-radius: 20px;
}

/* Cursor Trail */
#cursorTrail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Snake Game Overlay */
.snake-game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2600;
    backdrop-filter: blur(5px);
}

.snake-game-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.snake-game-window {
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 2px solid var(--neon-green);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 0 60px rgba(74, 222, 128, 0.3);
    animation: terminalSlide 0.3s ease;
}

.snake-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.snake-game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-green);
    letter-spacing: 2px;
}

.snake-game-title i {
    margin-right: 0.5rem;
}

.snake-close-btn {
    width: 35px;
    height: 35px;
    background: rgba(233, 69, 96, 0.2);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snake-close-btn:hover {
    background: var(--primary);
    color: white;
}

.snake-game-body {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(74, 222, 128, 0.3);
}

#snakeCanvas {
    display: block;
}

.snake-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.snake-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.snake-overlay i {
    font-size: 3rem;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
}

.snake-overlay span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--light);
    letter-spacing: 2px;
}

.snake-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.snake-game-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.snake-score, .snake-high {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--gray);
}

.snake-score span, .snake-high span {
    color: var(--neon-green);
    font-weight: 700;
}

.snake-hint {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.snake-hint i {
    color: var(--neon-blue);
    font-size: 0.9rem;
}

/* Achievements Section */
.achievements-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.85) 0%, rgba(5, 5, 8, 0.7) 50%, rgba(5, 5, 8, 0.85) 100%);
    border-radius: 20px;
}

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

.achievement-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.achievement-card.unlocked {
    opacity: 1;
    border-color: var(--neon-yellow);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(250, 204, 21, 0.02) 100%);
}

.achievement-card.unlocked .achievement-icon {
    background: linear-gradient(135deg, var(--neon-yellow) 0%, #f59e0b 100%);
    color: var(--darker);
}

.achievement-card.unlocked .achievement-status i {
    color: var(--neon-green);
}

.achievement-card.just-unlocked {
    animation: achievementUnlock 0.6s ease;
}

@keyframes achievementUnlock {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(250, 204, 21, 0.5); }
    100% { transform: scale(1); }
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gray);
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.achievement-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light);
}

.achievement-desc {
    font-size: 0.8rem;
    color: var(--gray);
}

.achievement-status {
    font-size: 1.2rem;
    color: var(--gray);
}

.achievements-hint {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.achievements-hint i {
    color: var(--neon-yellow);
    margin-right: 0.5rem;
}

.achievements-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--neon-blue);
}

/* Terminal Overlay */
.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    backdrop-filter: blur(5px);
}

.terminal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.terminal-window {
    width: 90%;
    max-width: 700px;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(74, 222, 128, 0.1);
    animation: terminalSlide 0.3s ease;
}

@keyframes terminalSlide {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #0f0f1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-btn.close { background: #ff5f56; }
.terminal-btn.minimize { background: #ffbd2e; }
.terminal-btn.maximize { background: #27ca40; }

.terminal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 1px;
}

.terminal-body {
    padding: 1rem;
    height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.terminal-output {
    margin-bottom: 0.5rem;
}

.terminal-line {
    margin: 0.25rem 0;
    color: var(--light);
    word-wrap: break-word;
}

.terminal-line.system {
    color: var(--neon-green);
}

.terminal-line.error {
    color: var(--primary);
}

.terminal-line.success {
    color: var(--neon-blue);
}

.terminal-line.warning {
    color: var(--neon-yellow);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-prompt {
    color: var(--neon-purple);
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--light);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    outline: none;
    caret-color: var(--neon-green);
}

/* Achievement Notification Toast */
.achievement-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.95) 0%, #f59e0b 100%);
    color: var(--darker);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3000;
    animation: toastSlide 0.5s ease, toastFade 0.5s ease 3s forwards;
    box-shadow: 0 10px 40px rgba(250, 204, 21, 0.3);
}

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFade {
    to { opacity: 0; transform: translateY(20px); }
}

.achievement-toast i {
    font-size: 1.5rem;
}

.achievement-toast .toast-content {
    display: flex;
    flex-direction: column;
}

.achievement-toast .toast-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

.achievement-toast .toast-desc {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .game-hub {
        padding: 0 1rem 1rem;
    }

    .hub-header {
        padding: 1rem;
    }

    .back-btn span {
        display: none;
    }

    .player-stats {
        gap: 1rem;
    }

    .stat-label {
        display: none;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle-glitch {
        font-size: 0.7rem;
        letter-spacing: 4px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1rem;
    }

    .header-line {
        max-width: 50px;
    }

    .origins-section {
        padding: 2rem 0;
    }

    .quote-block {
        padding: 2rem 1rem;
    }

    .quote-block blockquote {
        font-size: 1rem;
    }

    .legacy-downloads {
        padding: 1.5rem;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .origins-text .note {
        flex-direction: column;
        text-align: center;
    }

    .header-controls {
        gap: 0.5rem;
    }

    .anim-toggle,
    .sound-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .game-preview {
        height: 140px;
    }

    .game-card[data-preview] {
        min-height: 420px;
    }

    .game-card:hover .card-content {
        transform: translateY(40px);
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .terminal-window {
        width: 95%;
        margin: 1rem;
    }

    .terminal-body {
        height: 300px;
        font-size: 0.8rem;
    }

    .achievement-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .snake-game-window {
        padding: 1rem;
        margin: 1rem;
    }

    #snakeCanvas {
        width: 260px;
        height: 260px;
    }
}
