/* =============================================================================
   STYLE.CSS - SQUASHLIVE
   Kolory: #ff7900 (pomarańczowy), #3a3a3a (ciemny szary), #ed1b24 (czerwony)
   ============================================================================= */

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

body {
    background: #3a3a3a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.game-container {
    position: relative;
    border: 4px solid #ff7900;
    border-radius: 8px;
    box-shadow: 
        0 0 30px rgba(255, 121, 0, 0.4),
        0 0 60px rgba(237, 27, 36, 0.2),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* Nowoczesne efekty 2026 */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}

.game-container:hover {
    box-shadow: 
        0 0 40px rgba(255, 121, 0, 0.6),
        0 0 80px rgba(237, 27, 36, 0.3),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    border-color: #ed1b24;
}

#gameCanvas {
    display: block;
    background: #000000;
    cursor: none;
    /* Obsługa dotyku na mobile */
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.info-panel {
    color: #ff7900;
    text-align: center;
    font-size: 14px;
    background: #3a3a3a;
    padding: 15px 30px;
    border-radius: 8px;
    border: 2px solid #ed1b24;
    box-shadow: 
        0 4px 15px rgba(237, 27, 36, 0.3),
        inset 0 0 20px rgba(255, 121, 0, 0.1);
}

.info-panel p {
    margin: 5px 0;
}

.brand-name {
    color: #ff7900;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Efekt świecenia */
    text-shadow: 
        0 0 10px rgba(255, 121, 0, 0.8),
        0 0 20px rgba(255, 121, 0, 0.4);
    -webkit-animation: brandPulse 2s ease-in-out infinite;
    animation: brandPulse 2s ease-in-out infinite;
}

/* Animacja pulsowania marki */
@-webkit-keyframes brandPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 121, 0, 0.8),
            0 0 20px rgba(255, 121, 0, 0.4);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 121, 0, 1),
            0 0 40px rgba(255, 121, 0, 0.6),
            0 0 60px rgba(237, 27, 36, 0.3);
    }
}

@keyframes brandPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 121, 0, 0.8),
            0 0 20px rgba(255, 121, 0, 0.4);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 121, 0, 1),
            0 0 40px rgba(255, 121, 0, 0.6),
            0 0 60px rgba(237, 27, 36, 0.3);
    }
}

/* Efekt winietki na canvas */
.game-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* Efekt scanlines - retro vibes 2026 */
.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 10;
    -webkit-animation: scanlineMove 8s linear infinite;
    animation: scanlineMove 8s linear infinite;
}

@-webkit-keyframes scanlineMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

@keyframes scanlineMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

/* Gradient border effect */
.game-container {
    position: relative;
    background: #3a3a3a;
}

.game-container::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #ff7900, #ed1b24, #ff7900);
    border-radius: 12px;
    z-index: -1;
    -webkit-animation: borderRotate 3s linear infinite;
    animation: borderRotate 3s linear infinite;
}

.game-container::after {
    inset: -4px;
    background: linear-gradient(45deg, #ff7900, #ed1b24, #ff7900);
    border-radius: 12px;
    z-index: -2;
    -webkit-filter: blur(10px);
    filter: blur(10px);
    opacity: 0.5;
}

@-webkit-keyframes borderRotate {
    0% {
        background: linear-gradient(45deg, #ff7900, #ed1b24, #ff7900);
    }
    25% {
        background: linear-gradient(45deg, #ed1b24, #ff7900, #ed1b24);
    }
    50% {
        background: linear-gradient(45deg, #ff7900, #ed1b24, #ff7900);
    }
    75% {
        background: linear-gradient(45deg, #ed1b24, #ff7900, #ed1b24);
    }
    100% {
        background: linear-gradient(45deg, #ff7900, #ed1b24, #ff7900);
    }
}

@keyframes borderRotate {
    0% {
        background: linear-gradient(45deg, #ff7900, #ed1b24, #ff7900);
    }
    25% {
        background: linear-gradient(45deg, #ed1b24, #ff7900, #ed1b24);
    }
    50% {
        background: linear-gradient(45deg, #ff7900, #ed1b24, #ff7900);
    }
    75% {
        background: linear-gradient(45deg, #ed1b24, #ff7900, #ed1b24);
    }
    100% {
        background: linear-gradient(45deg, #ff7900, #ed1b24, #ff7900);
    }
}

/* Glow effect na hover */
.game-container:hover {
    -webkit-transform: scale(1.01);
    transform: scale(1.01);
}

/* Responsywność */
@media (max-width: 850px) {
    .game-container {
        max-width: 95vw;
    }
    
    .info-panel {
        font-size: 12px;
        padding: 10px 20px;
    }
}

/* Małe ekrany - telefony */
@media (max-width: 600px) {
    body {
        padding: 10px;
        gap: 10px;
    }
    
    .game-wrapper {
        gap: 10px;
    }
    
    .game-container {
        width: 100% !important;
        max-width: 100vw;
        border-width: 2px;
    }
    
    #gameCanvas {
        width: 100% !important;
        height: auto !important;
    }
    
    .info-panel {
        font-size: 10px;
        padding: 8px 15px;
    }
    
    .brand-name {
        font-size: 14px;
    }
}

/* Bardzo małe ekrany */
@media (max-width: 400px) {
    .info-panel {
        font-size: 9px;
        padding: 6px 10px;
    }
    
    .brand-name {
        font-size: 12px;
    }
}

/* Landscape na telefonach */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        flex-direction: row;
        gap: 20px;
    }
    
    .game-wrapper {
        flex-direction: row;
    }
    
    .info-panel {
        writing-mode: vertical-lr;
        max-height: 90vh;
    }
}

/* Zapobieganie przewijaniu na mobile */
@media (hover: none) and (pointer: coarse) {
    body {
        overscroll-behavior: none;
    }
    
    .game-container:hover {
        transform: none;
    }
}
