/* Mini-game overlay. Kept separate from styles.css so the game stays modular. */

#minigame {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: #0d1117;
}

#minigame[hidden] {
    display: none;
}

#minigame-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: none; /* the drawn reticle is the only cursor */
}

#minigame-result {
    position: fixed;
    inset: 0;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(13, 17, 23, 0.92);
    text-align: center;
}

#minigame-result[hidden] {
    display: none;
}

#minigame-result-text {
    max-width: 640px;
    margin: 0 auto 24px;
    padding: 0;
    color: #00FF00;
    background: transparent;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

#minigame-buttons {
    display: flex;
    gap: 16px;
}

#minigame-buttons button {
    padding: 10px 22px;
    color: #00FF00;
    background: transparent;
    border: 2px solid #00FF00;
    border-radius: 16px;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
}

#minigame-buttons button:hover {
    color: #0d1117;
    background-color: #00FF00;
}
