/* =========================================
   Daily Putting Challenge Game
   - Minimalist, Dark Mode, Neon Accents
========================================= */

/* Modal Overlay */
.putting-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    /* Higher than other modals */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.putting-modal-overlay.show {
    opacity: 1;
}

/* Game Container (Canvas Wrapper) */
.putting-game-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 80vh;
    max-height: 800px;
    background: #1e1e1e;
    border: 2px solid #333;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
    /* Ensure container doesn't block, but lets children handle events */
    /* pointer-events: auto;  Default is auto, which is fine usually */
}

/* The Canvas */
#putting-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    /* Critical for drag */
    cursor: crosshair;
    position: relative;
    z-index: 1;
    /* Ensure above background but below UI */
    pointer-events: auto;
    /* Explicitly allow */
}

/* Header / UI Overlay */
.putting-ui-header {
    /* Position handled by Flex layout inline style or parent */
    pointer-events: none;
    /* Let clicks pass through if needed, but buttons inside need auto */
    /* Actually with new layout, header is separate block. So pointer-events can be auto. */
    /* But we set inline style in JS. Let's reset here just in case */
    position: relative;
    top: auto;
    left: auto;
}

.putting-stat-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    pointer-events: auto;
}

.putting-title {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 2px;
    font-weight: 600;
}

.putting-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ff88;
}

/* Close Button */
.putting-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 20;
    pointer-events: auto;
}

.putting-close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Message / Result Overlay */
.putting-message-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    width: 100%;
    z-index: 15;
}

.putting-message-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.putting-msg-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    margin-bottom: 10px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.putting-message-overlay.show .putting-msg-title {
    transform: scale(1);
}

.putting-msg-desc {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 20px;
}

.putting-action-btn {
    background: linear-gradient(90deg, #00ff88, #00f3ff);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    color: #000;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
    transition: transform 0.2s;
}

.putting-action-btn:hover {
    transform: scale(1.05);
}

/* Guide / Tip */
.putting-guide-text {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    pointer-events: none;
    animation: pulseText 2s infinite;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}