/* Minigame Section */
#minigame {
    background: #1c2630;
    color: #fff;
    text-align: center;
    padding: clamp(3rem, 5vw, 4rem) 0;
    border-bottom: 48px solid #16222E;
}

#minigame h2 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.game-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.game-ui {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #fff;
    pointer-events: none;
}

.game-ui p {
    margin: 0;
}

.game-ui p strong {
    color: #f1c40f;
}

#restartBtn {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 20;
    padding: 8px 18px;
    font-size: 0.85rem;
}

#startOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
    transition: opacity 0.3s ease;
}

#startBtn {
    font-size: 1.8rem;
    padding: 1.2em 2.5em;
    border-radius: 50px;
    box-shadow: 0 0 40px rgba(94, 143, 115, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#startBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(94, 143, 115, 0.6);
}

canvas#gameCanvas {
    background: #131a22;
    width: 100%;
    height: auto;
    display: block;
    cursor: crosshair;
}

/* Global Pogo Mode Styles */
#global-pogo-container {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

#global-pogo-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    pointer-events: none;
    /* Let clicks pass to UI */
}

#global-pogo-hud {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: auto;
}

.hud-content {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid #2ecc71;
    /* var(--brand-green) equivalent */
    border-radius: 50px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hud-badge {
    background: #2ecc71;
    color: #1c2630;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-family: 'Bungee', cursive;
}

.hud-score {
    font-family: 'Bungee', cursive;
    font-size: 1.1rem;
}

.hud-score strong {
    color: #2ecc71;
}

#exit-pogo-mode {
    font-size: 0.8rem;
    padding: 6px 14px;
}