:root {
    --card-width: clamp(72px, 9vw, 92px);
    --card-height: calc(var(--card-width) * 1.4);
    --card-gap: clamp(6px, 1vw, 10px);
    --valid-color: #4ade80;
}

.game-header {
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.game-header h1 {
    font-size: 1.4rem;
}

.score {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
}

.game-board {
    min-width: 0;
    overflow-x: visible;
}

.golf-status {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 auto 1.25rem;
    color: var(--text-secondary, #aaa);
    font-size: 0.95rem;
}

.golf-status strong {
    color: var(--accent-gold, #d4af37);
}

.stock-waste {
    display: flex;
    justify-content: center;
    gap: calc(var(--card-gap) * 2);
    margin-bottom: 2rem;
}

.stock,
.waste {
    width: var(--card-width);
    height: var(--card-height);
    border-radius: 6px;
    position: relative;
}

.stock {
    cursor: pointer;
}

.stock.empty {
    border: 2px dashed rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.15);
    cursor: default;
}

.stock.empty::after {
    content: '0';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.8rem;
    font-weight: 700;
}

.waste {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.15);
}

.golf-tableau {
    display: grid;
    grid-template-columns: repeat(7, var(--card-width));
    justify-content: center;
    gap: var(--card-gap);
    width: 100%;
    padding: 0 0 1rem;
}

.golf-column {
    width: var(--card-width);
    min-height: calc((var(--card-height) * 5) - (var(--card-height) * 0.64 * 4));
    position: relative;
}

.golf-column .game-card {
    margin-bottom: calc(var(--card-height) * -0.64);
}

.golf-column .game-card:last-child {
    margin-bottom: 0;
}

.game-card {
    width: var(--card-width);
    height: var(--card-height);
    min-width: var(--card-width);
    min-height: var(--card-height);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}

.game-card:hover:not(.blocked) {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.game-card.valid-move {
    box-shadow: 0 0 0 3px var(--valid-color), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.game-card.blocked {
    cursor: default;
}

.golf-empty-slot {
    width: var(--card-width);
    height: var(--card-height);
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    :root {
        --card-width: clamp(36px, calc((100vw - 34px) / 7), 48px);
        --card-height: calc(var(--card-width) * 1.4);
        --card-gap: 3px;
    }

    .game-board {
        overflow-x: visible;
        padding-left: 4px;
        padding-right: 4px;
    }

    .game-header {
        justify-content: center;
    }

    .game-header h1 {
        width: 100%;
        text-align: center;
    }

    .golf-status {
        gap: 0.65rem;
        font-size: 0.82rem;
    }

    .stock-waste {
        margin-bottom: 1.5rem;
    }

    .golf-column {
        min-height: calc((var(--card-height) * 5) - (var(--card-height) * 0.64 * 4));
    }

    .game-card-face {
        padding: 2px;
        font-size: 0.5rem;
    }

    .game-card-center {
        font-size: 0.9rem;
    }
}
