.game-container {
    width: 100%;
    max-width: 1200px;
    height: 450px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin: 40px auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.digital-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    animation: backgroundFloat 30s linear infinite;
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(180deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: circuitMove 25s linear infinite;
}

.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="20" r="1" fill="%236366f1" opacity="0.6"><animate attributeName="opacity" values="0.6;1;0.6" dur="2s" repeatCount="indefinite"/></circle><circle cx="30" cy="40" r="0.8" fill="%238b5cf6" opacity="0.4"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3s" repeatCount="indefinite"/></circle><circle cx="60" cy="15" r="1.2" fill="%233b82f6" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="80" cy="60" r="0.9" fill="%236366f1" opacity="0.7"><animate attributeName="opacity" values="0.7;1;0.7" dur="1.8s" repeatCount="indefinite"/></circle><circle cx="20" cy="80" r="1.1" fill="%238b5cf6" opacity="0.6"><animate attributeName="opacity" values="0.6;1;0.6" dur="2.2s" repeatCount="indefinite"/></circle></svg>') repeat;
    background-size: 200px 200px;
    animation: particlesMove 20s linear infinite;
}

.digital-city {
    position: absolute;
    bottom: 60px;
    width: 200%;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><defs><linearGradient id="buildingGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%236366f1;stop-opacity:0.3"/><stop offset="100%" style="stop-color:%234338ca;stop-opacity:0.6"/></linearGradient></defs><rect x="50" y="40" width="30" height="80" fill="url(%23buildingGrad)" rx="2"/><rect x="100" y="20" width="40" height="100" fill="url(%23buildingGrad)" rx="2"/><rect x="160" y="50" width="25" height="70" fill="url(%23buildingGrad)" rx="2"/><rect x="200" y="30" width="35" height="90" fill="url(%23buildingGrad)" rx="2"/><rect x="250" y="45" width="30" height="75" fill="url(%23buildingGrad)" rx="2"/><rect x="300" y="15" width="45" height="105" fill="url(%23buildingGrad)" rx="2"/><rect x="360" y="35" width="30" height="85" fill="url(%23buildingGrad)" rx="2"/><rect x="410" y="25" width="40" height="95" fill="url(%23buildingGrad)" rx="2"/><rect x="470" y="40" width="35" height="80" fill="url(%23buildingGrad)" rx="2"/><rect x="520" y="30" width="30" height="90" fill="url(%23buildingGrad)" rx="2"/><rect x="570" y="50" width="40" height="70" fill="url(%23buildingGrad)" rx="2"/><rect x="630" y="20" width="35" height="100" fill="url(%23buildingGrad)" rx="2"/><rect x="680" y="40" width="30" height="80" fill="url(%23buildingGrad)" rx="2"/><rect x="730" y="10" width="50" height="110" fill="url(%23buildingGrad)" rx="2"/><rect x="800" y="35" width="30" height="85" fill="url(%23buildingGrad)" rx="2"/><rect x="850" y="25" width="40" height="95" fill="url(%23buildingGrad)" rx="2"/><rect x="910" y="45" width="35" height="75" fill="url(%23buildingGrad)" rx="2"/><rect x="960" y="30" width="30" height="90" fill="url(%23buildingGrad)" rx="2"/><rect x="1010" y="40" width="40" height="80" fill="url(%23buildingGrad)" rx="2"/><rect x="1070" y="20" width="35" height="100" fill="url(%23buildingGrad)" rx="2"/><rect x="1120" y="35" width="30" height="85" fill="url(%23buildingGrad)" rx="2"/></svg>') repeat-x;
    animation: cityMove 8s linear infinite;
    opacity: 0.7;
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, #2D1B69, #1a1458);
    border-top: 3px solid #4338ca;
    overflow: hidden;
}

.road-lines {
    position: absolute;
    top: 15px;
    left: 0;
    width: 200%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #6366f1 0px,
        #6366f1 30px,
        transparent 30px,
        transparent 60px
    );
    animation: roadMove 8s linear infinite;
}

.ground-pattern {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(99, 102, 241, 0.2) 1px, transparent 1px),
        linear-gradient(180deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 20px 10px;
}

.robot {
    position: absolute;
    bottom: 60px;
    left: 100px;
    width: 80px;
    height: 80px;
    z-index: 10;
    transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.robot.jumping {
    bottom: 200px;
    transition: bottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.robot.running {
    animation: robotRun 0.3s infinite;
}

.robot-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* Erkek robot - Mavi tema */
.robot-body.robot-male {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.7);
}

/* Kadın robot - Pembe tema */
.robot-body.robot-female {
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.7);
}

.robot-face {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.robot-eyes {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.robot-eye {
    width: 8px;
    height: 8px;
    background-color: #151828;
    border-radius: 50%;
    position: relative;
    animation: robotBlink 3s infinite;
}

.robot-eye:nth-child(2) {
    animation-delay: 0.5s;
}

.robot-pupil {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

.robot-mouth {
    width: 15px;
    height: 5px;
    background-color: #151828;
    border-radius: 0 0 8px 8px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

/* Erkek robot ağzı - Daha düz */
.robot-mouth.robot-mouth-male {
    width: 15px;
    height: 4px;
    border-radius: 0 0 6px 6px;
}

/* Kadın robot ağzı - Daha yuvarlak ve gülümser */
.robot-mouth.robot-mouth-female {
    width: 18px;
    height: 6px;
    border-radius: 0 0 12px 12px;
    background-color: #be185d;
}

.robot-antenna {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 12px;
    background: #6366f1;
}

.robot-antenna::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: antennaBlink 2s infinite;
}

/* Erkek robot anteni - Kırmızı */
.robot-male .robot-antenna::after {
    background: #ef4444;
    animation: antennaBlink 2s infinite;
}

/* Kadın robot anteni - Pembe */
.robot-female .robot-antenna::after {
    background: #f472b6;
    animation: antennaBlinkFemale 2s infinite;
}

.collectible {
    position: absolute;
    bottom: 140px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    animation: collectibleFloat 2s ease-in-out infinite, collectibleMove 8s linear infinite;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.9);
}

.collectible:hover {
    transform: scale(1.1);
}

.collectible.collected {
    animation: collectibleCollect 0.5s ease forwards;
}

.collectible-icon {
    width: 24px;
    height: 24px;
    margin: 8px;
    object-fit: contain;
}

.power-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    color: #4338ca;
    z-index: 15;
    box-shadow: 0 8px 20px rgba(67, 56, 202, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
}

.firework {
    position: absolute;
    pointer-events: none;
    z-index: 15;
}

.firework-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: fireworkExplode 1.2s ease-out forwards;
    box-shadow: 0 0 6px currentColor;
}

.floating-text {
    position: absolute;
    pointer-events: none;
    z-index: 16;
    font-weight: bold;
    font-size: 18px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: floatingTextAnimation 3s ease-out forwards;
}

@keyframes backgroundFloat {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes circuitMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes particlesMove {
    from { transform: translateX(0); }
    to { transform: translateX(-200px); }
}

@keyframes cityMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes roadMove {
    from { transform: translateX(0); }
    to { transform: translateX(-480px); }
}

@keyframes robotRun {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.02) rotate(-1deg); }
    50% { transform: scale(1.05) rotate(0deg); }
    75% { transform: scale(1.02) rotate(1deg); }
}

@keyframes robotBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

@keyframes antennaBlink {
    0%, 50%, 100% { background: #ef4444; }
    25%, 75% { background: #22c55e; }
}

@keyframes antennaBlinkFemale {
    0%, 50%, 100% { background: #f472b6; }
    25%, 75% { background: #fbbf24; }
}

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

@keyframes collectibleMove {
    from { transform: translateX(0); }
    to { transform: translateX(-1400px); }
}

@keyframes collectibleCollect {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(2) rotate(360deg); opacity: 0; }
}

@keyframes fireworkExplode {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 1;
    }
    70% {
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5) translate(var(--dx), var(--dy));
        opacity: 0;
    }
}

@keyframes floatingTextAnimation {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    20% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
    80% {
        transform: translateY(-80px) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120px) scale(1.2);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .game-container {
        height: 350px;
        margin: 20px 0;
    }
    
    .robot {
        left: 50px;
        width: 60px;
        height: 60px;
    }
    
    .robot-face {
        width: 40px;
        height: 40px;
    }
    
    .robot-eyes {
        gap: 8px;
    }
    
    .robot-eye {
        width: 6px;
        height: 6px;
    }
    
    .collectible {
        width: 30px;
        height: 30px;
    }
    
    .collectible-icon {
        width: 18px;
        height: 18px;
        margin: 6px;
    }
} 