/**
 * CPS TEST STYLES
 * Conforme au design commun des jeux Stimuludo (ex: Target Aiming).
 */

.game-container.cps-layout {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

#game-over-overlay.visible ~ .game-container.cps-layout {
    opacity: 0;
    pointer-events: none;
}

/* Header Timer Display (identique à Target Aiming) */
.timer-display {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    font-size: 2.5rem;
    min-width: 110px;
    justify-content: center;
    padding: 0 15px;
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
}

.timer-display svg {
    width: 48px;
    height: 48px;
    stroke: none;
    overflow: visible;
}

.timer-text {
    padding-top: 8px;
    white-space: nowrap;
}

/* Workspace & Click Zone (Zone en pointillé comme Target Aiming) */
.cps-workspace {
    flex-grow: 1;
    width: 100%;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.cps-click-zone {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background-color: color-mix(in srgb, var(--card-bg), transparent 50%);
    cursor: pointer;
    transition: background-color 0.1s ease, border-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    outline: none;
}

.cps-click-zone:hover {
    border-color: var(--accent-color);
}

.cps-click-zone:active {
    background-color: color-mix(in srgb, var(--card-bg), transparent 30%);
}

/* Prompt initial "Click to start" */
.cps-prompt {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    pointer-events: none;
    letter-spacing: -1px;
}

/* Compteur de clics centré */
.cps-click-counter {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 500;
    color: var(--text-primary);
    pointer-events: none;
    letter-spacing: -2px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    user-select: none;
    -webkit-user-select: none;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 700px) {
    .timer-display {
        font-size: 2rem;
    }

    .timer-display svg {
        width: 40px;
        height: 40px;
    }

    .cps-prompt {
        font-size: 1.6rem;
    }

    .cps-click-counter {
        font-size: 4rem;
    }
}

/* Fullscreen - boutons calés aux coins de l'écran */
.game-board:fullscreen .game-container.cps-layout,
.ios-fullscreen .game-container.cps-layout {
    padding: 1.25rem !important;
}

.game-board:fullscreen .game-container.cps-layout .game-header,
.ios-fullscreen .game-container.cps-layout .game-header,
.game-board:fullscreen .game-container.cps-layout .game-actions-row,
.ios-fullscreen .game-container.cps-layout .game-actions-row {
    padding: 0 !important;
}

@media (max-width: 700px) {
    .game-board:fullscreen .game-container.cps-layout,
    .ios-fullscreen .game-container.cps-layout {
        padding: 10px 12px !important;
    }
}

