@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

body {
    margin: 0;
    overflow: hidden;
    background-color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    touch-action: none; /* Mobilde kaydırmayı engelle */
    overscroll-behavior: none;
    user-select: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: relative;
    z-index: 2;
    touch-action: none;
}

#fieldSVG {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.fullscreen-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 30;
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    background: rgba(0,0,0,0.72);
    color: white;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    touch-action: manipulation;
}

.fullscreen-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.fullscreen-button.is-active {
    opacity: 0.55;
}

/* Skor tabelası ve arayüz gölgeleri için özel sınıflar */
.ui-panel {
    background: linear-gradient(to bottom, #4a4a4a, #2a2a2a);
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    border-bottom: 2px solid #666;
}

.avatar-box {
    background: linear-gradient(to bottom, #5ce1e6, #0097b2);
    border: 2px solid #ffd700;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.avatar-box.p2 {
    background: linear-gradient(to bottom, #ff5e62, #ff9966);
}

/* Animasyonlar */
@keyframes pulse {
    0% { transform: translate(-50%, 0) scale(1); }
    50% { transform: translate(-50%, 0) scale(1.05); }
    100% { transform: translate(-50%, 0) scale(1); }
}
.turn-indicator {
    animation: pulse 2s infinite;
}

#goalOverlay {
    transition: opacity 0.3s ease;
}

@media (hover: none) and (pointer: coarse) {
    .fullscreen-button {
        display: flex;
    }
}

@media (max-width: 900px) {
    .fullscreen-button {
        display: flex;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .fullscreen-button {
        display: flex;
    }

    .scoreboard {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        min-height: 44px;
    }

    .scoreboard .avatar-box {
        width: 34px !important;
        height: 34px !important;
        border-width: 1px;
    }

    .scoreboard .avatar-box svg {
        width: 28px !important;
        height: 28px !important;
    }

    .scoreboard .player-name {
        font-size: 14px !important;
        line-height: 1 !important;
    }

    .scoreboard .score-value {
        font-size: 26px !important;
        line-height: 1 !important;
    }

    .scoreboard .score-ball {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        border-bottom-width: 2px !important;
    }

    .scoreboard .score-ball-core {
        width: 24px !important;
        height: 24px !important;
    }

    .scoreboard .score-ball-pattern {
        width: 18px !important;
        height: 18px !important;
        gap: 2px !important;
    }

    .fullscreen-button {
        right: 10px;
        bottom: 10px;
        width: 38px;
        height: 38px;
    }

    .fullscreen-button svg {
        width: 21px;
        height: 21px;
    }
}
