/* PLAYSTACK - Pixel Game Style */

:root {
    /* Logo-inspired Colors */
    --pixel-yellow: #FFD700;
    --pixel-orange: #FF8C00;
    --pixel-purple: #8A2BE2;
    --pixel-blue: #00BFFF;
    --pixel-cyan: #00FFFF;
    --pixel-green: #00FF00;
    --pixel-pink: #FF1493;
    
    /* Pixel Game Theme */
    --bg-dark: #0D1117;
    --bg-darker: #010409;
    --bg-surface: #161B22;
    --bg-card: #21262D;
    --border-pixel: #30363D;
    
    /* Text Colors */
    --text-primary: #F0F6FC;
    --text-secondary: #8B949E;
    --text-accent: #FFD700;
    --text-code: #00FF00;
    
    /* Fonts */
    --font-pixel: 'Press Start 2P', monospace;
    --font-tech: 'Orbitron', monospace;
    
    /* Pixel Gradients */
    --gradient-stack: linear-gradient(135deg, var(--pixel-yellow) 0%, var(--pixel-orange) 25%, var(--pixel-purple) 50%, var(--pixel-blue) 100%);
    --gradient-neon: linear-gradient(90deg, var(--pixel-cyan) 0%, var(--pixel-green) 100%);
    
    /* Pixel Shadows */
    --shadow-pixel: 0 0 20px var(--pixel-yellow);
    --shadow-glow: 0 0 30px var(--pixel-purple);
    
    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Pixel Sizes */
    --pixel-size: 4px;
    --pixel-medium: 8px;
    --pixel-large: 16px;
}

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

body {
    font-family: var(--font-tech);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Pixel Grid Background */
.pixel-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.1;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: pixelDrift 20s linear infinite;
}

@keyframes pixelDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

/* Floating Pixels */
.floating-pixels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-pixel {
    position: absolute;
    width: var(--pixel-size);
    height: var(--pixel-size);
    background: var(--pixel-yellow);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-pixel);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    color: var(--text-accent);
    text-shadow: 2px 2px 0px var(--pixel-purple);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item:hover {
    color: var(--text-accent);
    text-shadow: 0 0 10px var(--pixel-yellow);
}

.nav-item.pixel-btn {
    background: var(--gradient-stack);
    padding: 0.5rem 1rem;
    border: 2px solid var(--pixel-yellow);
    color: var(--bg-dark);
    font-weight: bold;
}

.nav-item.pixel-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--pixel-yellow);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
}

.mobile-menu span {
    width: 20px;
    height: 3px;
    background: var(--text-accent);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 17, 23, 0.8) 0%,
        rgba(138, 43, 226, 0.3) 50%,
        rgba(13, 17, 23, 0.8) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.game-logo-container {
    position: relative;
    margin-bottom: 2rem;
}

.coin-rain {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100px;
    pointer-events: none;
}

.falling-coin {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--pixel-yellow);
    border-radius: 50%;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.3);
    animation: coinFall 2s linear infinite;
}

@keyframes coinFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(120px) rotate(360deg);
        opacity: 0;
    }
}

.pixel-logo {
    font-family: var(--font-pixel);
    font-size: 4rem;
    color: var(--text-accent);
    text-shadow: 
        4px 0 0 var(--pixel-orange),
        0 4px 0 var(--pixel-purple),
        4px 4px 0 var(--pixel-blue);
    margin-bottom: 1rem;
    display: inline-block;
    animation: pixelFloat 3s ease-in-out infinite;
}

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

.power-bar {
    width: 300px;
    height: 20px;
    background: #1a1a1a;
    border: 3px solid var(--pixel-yellow);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.power-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--pixel-green) 0%, 
        var(--pixel-yellow) 50%, 
        var(--pixel-orange) 100%);
    width: 0;
    animation: powerUp 3s ease-out forwards;
}

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

.power-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--text-primary);
    z-index: 2;
}

.hero-subtitle {
    margin-bottom: 2rem;
}

.pixel-text-build {
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    color: var(--text-code);
    min-height: 1.5em;
}

.hero-description {
    margin-bottom: 3rem;
}

.pixel-text {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.token-info {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Score Board */
.score-board {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.score-display, .lives-display, .coins-display {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid var(--pixel-yellow);
    padding: 1rem 2rem;
    text-align: center;
    position: relative;
}

.score-display::before, .lives-display::before, .coins-display::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-stack);
    z-index: -1;
    animation: borderGlow 2s ease-in-out infinite;
}

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

.score-label, .lives-label, .coins-label {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.score-value {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--pixel-green);
    letter-spacing: 2px;
}

.lives-hearts {
    font-size: 1.5rem;
    color: #333;
}

.heart.active {
    color: var(--pixel-pink);
    text-shadow: 0 0 10px var(--pixel-pink);
    animation: heartBeat 1s ease-in-out infinite;
}

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

.coins-value {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--pixel-yellow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.coin-icon {
    animation: coinSpin 2s linear infinite;
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Game Menu */
.game-menu {
    background: rgba(0, 0, 0, 0.9);
    border: 4px solid var(--pixel-yellow);
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.menu-title {
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    color: var(--pixel-yellow);
    text-align: center;
    margin-bottom: 2rem;
    animation: menuBlink 1s steps(2) infinite;
}

@keyframes menuBlink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-option {
    font-family: var(--font-pixel);
    font-size: 1rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--pixel-purple);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-fast);
    position: relative;
}

.game-option:hover {
    background: var(--pixel-purple);
    transform: translateX(10px);
    border-color: var(--pixel-yellow);
}

.game-option:hover .option-arrow {
    animation: arrowBounce 0.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.option-icon {
    font-size: 1.5rem;
}

.option-text {
    flex: 1;
    text-align: left;
}

.option-arrow {
    color: var(--pixel-yellow);
}

.insert-coin {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    animation: coinBlink 2s ease-in-out infinite;
}

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

/* Controller Hint */
.controller-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
}

.d-pad {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto 1rem;
}

.d-pad-up, .d-pad-horizontal, .d-pad-vertical {
    position: absolute;
    background: var(--text-secondary);
}

.d-pad-up {
    width: 20px;
    height: 20px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: dpadPulse 2s ease-in-out infinite;
}

.d-pad-horizontal {
    width: 60px;
    height: 20px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.d-pad-vertical {
    width: 20px;
    height: 60px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

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

.hint-text {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    animation: textFlash 3s ease-in-out infinite;
}

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

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Game UI Headers */
.game-ui-header {
    position: relative;
    display: inline-block;
    padding: 2rem 4rem;
    margin-bottom: 2rem;
}

.game-title {
    font-family: var(--font-pixel);
    font-size: 2rem;
    color: var(--text-accent);
    text-shadow: 2px 2px 0px var(--pixel-purple);
    position: relative;
    z-index: 2;
}

.ui-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--pixel-yellow);
}

.ui-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.ui-corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.ui-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.ui-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.level-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.level-text {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--text-secondary);
}

.level-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--border-pixel);
    border: 2px solid var(--text-secondary);
}

.dot.active {
    background: var(--pixel-yellow);
    box-shadow: 0 0 10px var(--pixel-yellow);
}

/* Features Section */
.features {
    background: var(--bg-darker);
}

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

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border-pixel);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--pixel-yellow);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.card-frame {
    padding: 2rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2rem;
}

.card-header h3 {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--text-accent);
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.progress-indicator {
    width: 100%;
    height: 6px;
    background: var(--bg-darker);
    border: 1px solid var(--border-pixel);
    overflow: hidden;
}

.progress-pixels {
    height: 100%;
    background: var(--gradient-stack);
    width: 0%;
    transition: width 2s ease;
}

.asset-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pixel-stack {
    position: relative;
    width: 60px;
    height: 60px;
}

.pixel-layer {
    position: absolute;
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
}

.pixel-layer.yellow {
    background: var(--pixel-yellow);
    top: 0;
    left: 20px;
    z-index: 3;
}

.pixel-layer.purple {
    background: var(--pixel-purple);
    top: 20px;
    left: 20px;
    z-index: 2;
}

.pixel-layer.blue {
    background: var(--pixel-blue);
    top: 40px;
    left: 20px;
    z-index: 1;
}

.earn-meter {
    position: relative;
    width: 100%;
    height: 20px;
    background: var(--bg-darker);
    border: 2px solid var(--border-pixel);
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--gradient-neon);
    width: 0%;
    transition: width 2s ease;
    position: relative;
}

.meter-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--text-primary);
    z-index: 2;
}

.governance-visual {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.voting-pixels {
    display: flex;
    gap: 5px;
}

.vote-pixel {
    width: 15px;
    height: 15px;
    background: var(--border-pixel);
    border: 1px solid var(--text-secondary);
    transition: all var(--transition-normal);
}

.vote-pixel.active {
    background: var(--pixel-green);
    box-shadow: 0 0 10px var(--pixel-green);
}

/* Games Section */
.games {
    background: var(--bg-surface);
}

.arcade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.arcade-machine {
    background: var(--bg-card);
    border: 3px solid var(--border-pixel);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}

.arcade-machine:hover {
    transform: scale(1.05);
    border-color: var(--pixel-yellow);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.machine-screen {
    background: var(--bg-darker);
    border: 2px solid var(--border-pixel);
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.machine-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.1) 50%,
        transparent 100%
    );
    animation: screenGlow 3s ease-in-out infinite;
}

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

.game-preview {
    position: relative;
    z-index: 2;
}

.game-title {
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    color: var(--text-accent);
    margin-top: 1rem;
}

.pixel-character, .stacked-blocks, .running-character {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    background: var(--gradient-stack);
    border: 2px solid var(--pixel-yellow);
    animation: pixelBob 2s ease-in-out infinite;
}

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

.machine-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    border-radius: 10px;
}

.game-info {
    display: flex;
    gap: 2rem;
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.score-display, .time-display, .lives-display, .blocks-display {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-pixel);
    border-radius: 5px;
}

.start-btn {
    font-family: var(--font-pixel);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: var(--pixel-green);
    color: var(--bg-dark);
    border: 2px solid var(--pixel-yellow);
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all var(--transition-fast);
}

.start-btn:hover {
    background: var(--pixel-yellow);
    transform: translateY(-2px);
}

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

.game-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 1rem;
}

.preview-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: iconPulse 2s ease-in-out infinite;
}

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

.game-title {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
}

.game-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.play-hint {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--pixel-green);
    text-align: center;
    animation: blinkHint 2s ease-in-out infinite;
}

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

/* Game Popup Styles */
.game-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.game-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-card);
    border: 4px solid var(--pixel-yellow);
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.game-popup.active .popup-content {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-pixel);
    padding-bottom: 1rem;
}

.popup-header h2 {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--pixel-yellow);
    margin: 0;
}

.close-popup {
    background: var(--pixel-pink);
    color: var(--text-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-popup:hover {
    background: var(--pixel-red);
    transform: scale(1.1);
}

.popup-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-container {
    position: relative;
    background: #000;
    border: 3px solid var(--border-pixel);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popupCanvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 400px;
    image-rendering: pixelated;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-align: center;
    padding: 2rem;
}

.game-overlay h3 {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--pixel-yellow);
    margin-bottom: 1rem;
}

.game-overlay p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-pixel);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    min-width: 120px;
}

.stat-label {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    color: var(--pixel-yellow);
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-content {
        padding: 1rem;
        max-width: 95%;
    }
    
    .popup-header h2 {
        font-size: 1.2rem;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .chart-legend {
        grid-template-columns: 1fr;
    }
    
    .tokenomics-dashboard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.control-stick {
    width: 30px;
    height: 30px;
    background: var(--pixel-yellow);
    border-radius: 50%;
    border: 3px solid var(--border-pixel);
}

.control-buttons {
    display: flex;
    gap: 1rem;
}

.game-btn {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--pixel-purple);
    background: transparent;
    color: var(--pixel-purple);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.game-btn:hover {
    background: var(--pixel-purple);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.game-btn.play {
    border-color: var(--pixel-green);
    color: var(--pixel-green);
}

.game-btn.play:hover {
    background: var(--pixel-green);
}

/* Tokenomics Section */
.tokenomics {
    background: var(--bg-darker);
}

.tokenomics-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.token-info-card {
    background: var(--bg-card);
    border: 2px solid var(--border-pixel);
    padding: 3rem;
    text-align: center;
}


.token-info-card h3 {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
}

.token-supply {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.token-utilities {
    display: grid;
    gap: 1rem;
}

.utility-item {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 0.5rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-pixel);
}

.distribution-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.chart-container {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient(
        var(--pixel-yellow) 0deg 135deg,
        var(--pixel-purple) 135deg 243deg,
        var(--pixel-blue) 243deg 297deg,
        var(--pixel-orange) 297deg 342deg,
        var(--pixel-green) 342deg 360deg
    );
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.chart-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 400px;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-pixel);
    border-radius: 8px;
    padding: 1rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-color.public { background: var(--pixel-yellow); }
.legend-color.rewards { background: var(--pixel-purple); }
.legend-color.ecosystem { background: var(--pixel-blue); }
.legend-color.liquidity { background: var(--pixel-orange); }
.legend-color.team { background: var(--pixel-green); }

.legend-text {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.legend-percentage {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--text-accent);
    font-weight: bold;
}

/* Access Section */
.access {
    background: var(--bg-surface);
}

.access-terminal {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-darker);
    border: 2px solid var(--border-pixel);
    border-radius: 10px;
    overflow: hidden;
}

.terminal-header {
    background: var(--bg-card);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-pixel);
}

.terminal-title {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--text-accent);
}

.terminal-controls {
    display: flex;
    gap: 1rem;
}

.control {
    width: 20px;
    height: 20px;
    background: var(--pixel-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--bg-dark);
    cursor: pointer;
}

.control.minimize { background: var(--pixel-yellow); }
.control.maximize { background: var(--pixel-green); }
.control.close { background: var(--pixel-pink); }

.terminal-content {
    padding: 2rem;
}

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

.terminal-output p {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--text-code);
    margin-bottom: 0.5rem;
}

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

.terminal-input .prompt {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--pixel-yellow);
}

.terminal-input .cursor {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--text-code);
    animation: blink 1s infinite;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--border-pixel);
    padding: 3rem 0 1rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px var(--pixel-purple);
}

.footer-content p {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-pixel);
}

.footer-bottom p {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform var(--transition-normal);
        border-bottom: 2px solid var(--border-pixel);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .pixel-title h1 {
        font-size: 2.5rem;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tokenomics-dashboard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .arcade-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

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

.glitch-text::before {
    animation: glitch-anim-1 0.5s infinite linear alternate-reverse;
    color: var(--pixel-cyan);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-anim-2 0.5s infinite linear alternate-reverse;
    color: var(--pixel-pink);
    z-index: -2;
}

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

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

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--text-code);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--text-code); }
}

/* Pixel Build Effect */
.pixel-text-build {
    position: relative;
    display: inline-block;
}

.pixel-letter {
    display: inline-block;
    opacity: 0;
    animation: pixelBuild 0.1s ease-out forwards;
}

@keyframes pixelBuild {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0);
    }
    50% {
        transform: translateY(0) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}