/* ==========================================================================
   STYLIZACJA PODSTRONY ATLAS CLICKER
   ========================================================================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b0f0c; /* Bardzo ciemne tło strony */
    color: #e3e8e4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.game-container {
    background: #141a16; 
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 30px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.view-box h2 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
}

.view-box p {
    color: #a2aba4;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.discord-btn {
    background-color: #5865F2;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s, transform 0.1s;
}

.discord-btn:hover {
    background-color: #4752C4;
}

.discord-btn:active {
    transform: scale(0.98);
}

.discord-btn img {
    width: 24px;
    height: 24px;
}

.safety-info {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 18px;
    font-size: 13.5px;
    color: #929c94;
    text-align: left;
    border-left: 4px solid #5865F2;
    line-height: 1.5;
}

.safety-info h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.logout-link {
    background: transparent;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 14px;
}

.logout-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   OBIEKT KLIKALNY I EFEKT SQUISH
   ========================================================================== */
.clickable-target {
    width: 140px;
    height: 140px;
    margin: 25px auto;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clickable-target img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.squish-effect {
    animation: squish 0.12s ease-in-out;
}

@keyframes squish {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scaleY(0.72) scaleX(1.15);
    }
    100% {
        transform: scale(1);
    }
}

#score-display {
    font-size: 42px;
    margin: 10px 0;
    color: #ffffff;
    font-weight: 700;
}

.cps-text {
    color: #838e85;
    font-size: 14px;
}

#cps-display {
    color: #2ecc71;
}

.shop-section {
    margin-top: 30px;
    text-align: left;
}

.shop-section h3 {
    font-size: 16px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.shop-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-item button {
    background: #232d26;
    color: #ffffff;
    border: 1px solid #2f3d33;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    line-height: 1.4;
}

.shop-item button:hover {
    background: #2f3d33;
}

.item-count {
    font-size: 13px;
    color: #838e85;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 25px 0 15px 0;
}

.mini-lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a2aba4;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mini-lang-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
}

/* ==========================================================================
   MECHANIZM PRZEŁĄCZANIA JĘZYKÓW
   ========================================================================== */

[data-lang="pl"], [data-lang="en"] {
    display: none !important;
}

body.lang-pl [data-lang="pl"] {
    display: inline !important;
}

body.lang-en [data-lang="en"] {
    display: inline !important;
}
