.game-section {
    margin-top: 100px;
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    background: linear-gradient(to bottom, #000, #111);
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    /* Taller for the intro image */
    margin: 0 auto;
    border: 2px solid var(--gold);
    overflow: hidden;
    background: rgba(20, 20, 20, 0.8);
    cursor: crosshair;
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    touch-action: none;
    /* Prevent scroll/zoom on touch */
}

#game-ui {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass to game area when playing */
}

/* Stats (Score/Time) */
#game-stats {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
    color: var(--gold);
    text-shadow: 0 0 5px black;
    z-index: 101;
}

/* Screens */
#start-screen-game,
#result-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    /* Enable clicks */
    gap: 20px;
}

.hidden {
    display: none !important;
}

#game-intro-img {
    max-width: 200px;
    border-radius: 10px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.5);
    margin-bottom: 20px;
}

button {
    padding: 15px 40px;
    font-size: 1.5rem;
    background: var(--gold);
    color: black;
    border: none;
    cursor: pointer;
    font-family: 'Shippori Mincho', serif;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.1);
}

/* Countdown */
#countdown-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    color: red;
    font-weight: bold;
    text-shadow: 0 0 20px yellow;
    z-index: 200;
    pointer-events: none;
}

/* Target */
.yagyu-target {
    position: absolute;
    /* Larger hit area */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-image: url('../yagyu.jpg');
    /* Keep visual size smaller than hit area */
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    /* Visual debug: Add transparent border or shadow if needed, but keeping clean */
    /* Add a visible inner circle effect? No, keep it invisible padding */

    /* Make the visual part pop */
    filter: drop-shadow(0 0 5px white);

    transition: transform 0.1s;
    z-index: 10;

    /* CRITICAL: Ensure no browser simulated clicks */
    touch-action: none;

    /* Performance Optimization */
    will-change: top, transform;
}

.yagyu-target:active {
    transform: scale(0.9);
    filter: brightness(1.5);
}

.hit-effect {
    position: absolute;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: bold;
    pointer-events: none;
    animation: float-up 0.5s forwards;
    text-shadow: 0 0 5px black;
    z-index: 20;
}

@keyframes float-up {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0;
    }
}