/* Non-critical CSS - Below the fold and deferred styles */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}



/* Buttons */
button {
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    margin: 3px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(51, 57, 58, 0.6);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(53, 66, 67, 0.6);
}

button:active {
    transform: translateY(-1px);
    border-bottom-width: 2px;
}

#restartBtn {
    top: 1px;
    border: none;
    background: linear-gradient(135deg, #00a058 0%, #034e00 100%);
}

#restartBtn:hover {
    background: linear-gradient(135deg, #00be69 0%, #048600 100%);
    transform: translateY(-2px);
}

#restartBtn:active {
    transform: translateY(-1px);
}

/* Xシェアボタン専用スタイル */
#shareTwitterBtn {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

#shareTwitterBtn:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transform: translateY(-2px);
    border: 1px solid rgba(255, 255, 255, 1);
}

#shareBtns {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-direction: row;
    height: 57px;
}

#gameCanvas{
    cursor:pointer;
}
.settings-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 217, 255, 0.3);
    border-color: rgba(0, 217, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}
.settings-group:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}

/* Footer */
footer {
    margin: 5px 0 12px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* Game Overlay inline styles */
#newHighScoreMsg {
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    display: none;
    animation: pulse 1s infinite;
}

#highScoreText {
    color: #00D9FF;
    font-size: 20px;
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    max-width: 504px;
    margin: 30px auto 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.about-section h2 {
    color: #00D9FF;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.about-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
}

/* Other Games Section */
#other_games {
    max-width: 504px;
    margin: 0 auto 20px auto;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

#other_games h2 {
    color: #00D9FF;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

#other_games > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 18px;
}

.games-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.games-list li {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.games-list li:hover {
    background: rgba(255, 255, 255, 0.07);
}

a{
    color: #17c3e2;
    text-decoration: none;
}
.games-list li a {
    display: block;
    padding: 12px 18px;
    color: #17c3e2;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

a:hover {
    color : #00D9FF !important
}


@media (max-width: 5170px) {
    #shareBtns {
        flex-direction: column;
        height: 107px;
    }

    #shareBtns button {
        width: 100%;
        gap: 3px;
    }
}

#gameOverlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(25, 25, 25, 0.85);
    padding: 40px 20px;
    width: 80%;
    border-radius: 20px;
    text-align: center;
    z-index: 10;
    border: 3px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

#gameOverlay h2 {
    color: #FFD700;
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#gameOverlay p {
    color: white;
    font-size: 24px;
    margin-bottom: 3px;
}