/* ============================================
   2P DT-Trainer – page-specific overrides
   ============================================ */

/* Setup modal: Random + Start buttons naast elkaar */
.setup-actions {
    grid-template-columns: 1fr 1fr;
}

/* Undo button */
.btn-header-undo {
    background: transparent;
    cursor: pointer;
}

.btn-header-undo:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Left column: turn-grid fills full available height */
.trainer-left-2p {
    justify-content: stretch;
}

.trainer-left-2p .turn-grid {
    flex: 1;
    align-content: stretch;
}

.trainer-left-2p .btn-score.btn-turn-quick {
    height: 100%;
}

/* Right side: two stacked player areas */
.players-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
    min-height: 0;
}

.player-area {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: var(--color-tile);
    outline: solid 2px #ffffff18;
    border-radius: 0 2rem 0 2rem;
    padding: 0.9rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: outline-color 0.15s, box-shadow 0.15s, opacity 0.2s;
    opacity: 0.35;
}

.player-area--active {
    outline: solid 3px var(--color-Coper);
    box-shadow: inset 0 0 16px 0 rgba(200, 120, 40, 0.08);
    opacity: 1;
}

.player-area-header {
    display: flex;
    align-items: center;
}

.player-area-label {
    font-family: var(--font-heading);
    font-size: calc(clamp(1.4rem, 2.2vh, 2.2rem) + 20px);
    color: var(--color-Coper);
    letter-spacing: 0.06em;
    opacity: 0.45;
    transition: opacity 0.15s;
}

.player-area--active .player-area-label {
    opacity: 1;
}

/* Player area body: links getal, rechts stats 2x2 */
.player-area-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    overflow: hidden;
}

/* Links: groot getal + x-aantal onder elkaar, gecentreerd */
.player-target-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0;
}

.player-area .target-current {
    font-size: clamp(9rem, 22vh, 20rem);
    border: none;
    cursor: default;
    padding: 0px 60px;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.player-hits-sub {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}

.player-area .target-hits-x {
    font-size: clamp(1.8rem, 2.8vh, 2.8rem);
}

.player-area .target-hits-num {
    font-size: clamp(4rem, 7vh, 7rem);
}

/* Rechts: 2x2 stats grid */
.player-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.5fr 0.5fr;
    gap: 0px 0px;
    flex: 1;
    min-width: 0;
    align-self: center;
    align-content: center;
}

.player-stats-grid .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.3rem;
    gap: 0.05rem;
    height: auto;
    background: none;
    outline: none;
    border-radius: 0;
}

.player-stats-grid .stat-value {
    font-size: calc(clamp(6.24rem, 10.4vh, 10.4rem) + 20px);
    border-bottom: 2px solid var(--color-Coper);
    padding-bottom: 0.1rem;
}

.player-stats-grid .stat-label {
    font-size: 0.95rem;
}

/* Next veld: iets grotere waarde zodat het nummer opvalt */
.stat-next-row {
    display: flex;
    align-items: baseline;
    gap: 0;
    /* border-bottom: 2px solid var(--color-Coper); */
    padding-bottom: 0.15em;
}

.stat-next-value {
    font-family: var(--font-heading);
    font-size: calc(clamp(6.24rem, 10.4vh, 10.4rem) + 20px) !important;
    background: linear-gradient(0deg, white 0%, var(--color-Coper) 40%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-next-divider {
    font-family: var(--font-heading);
    font-size: calc((clamp(6.24rem, 10.4vh, 10.4rem) + 20px) / 2) !important;
    color: rgba(255, 255, 255, 0.3);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25em;
    line-height: 1;
}

.stat-next-remaining {
    font-family: var(--font-heading);
    font-size: calc((clamp(6.24rem, 10.4vh, 10.4rem) + 20px) / 2) !important;
    color: rgba(255, 255, 255, 0.45);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.45);
    line-height: 1;
}

/* Name input in setup modal */
.setup-name-input {
    font-size: 3.2rem !important;
    text-align: left !important;
    padding: 0.6rem 1rem !important;
}

/* Setup modal: two player input cards side-by-side */
.setup-players {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.setup-player-card {
    background: #ffffff08;
    outline: solid 1px #ffffff1f;
    border-radius: 0 1rem 0 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.setup-player-card h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.4vh, 3rem);
    color: var(--color-Coper);
}

.setup-player-card .setup-fields {
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

@media (max-width: 900px) {
    .players-column {
        gap: 0.6rem;
    }

    .player-area {
        padding: 0.6rem 0.8rem;
        gap: 0.3rem;
    }

    .player-stats-grid {
        gap: 0.4rem;
    }

    .player-area .target-current {
        font-size: clamp(6rem, 15vh, 13rem);
    }

    .player-area .target-hits-num {
        font-size: clamp(2.8rem, 5.5vh, 5rem);
    }

    .stat-next-value {
        font-size: calc(clamp(2.4rem, 4vh, 4rem) + 20px) !important;
    }

    .setup-players {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .setup-player-card {
        padding: 0.8rem;
    }
}
