/* Scorekeeper specific styles */

.scoreboard-container {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 30px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.scoreboard-container::-webkit-scrollbar {
    display: none;
}

.frame {
    flex: 0 0 calc(100% / 5); /* Show ~5 frames on screen */
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    min-width: 60px;
}

.frame.active {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.frame-header {
    background: var(--bg-elevated);
    text-align: center;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    padding: 4px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: var(--text-secondary);
}

.rolls {
    display: flex;
    height: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.roll {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.roll:last-child {
    border-right: none;
}

.frame-score {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    padding: 8px 0;
}


/* 10-Pin Triangle Interactive Layout */
.pin-deck {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    position: relative;
    background: radial-gradient(circle, var(--bg-elevated) 0%, transparent 70%);
    border-radius: 50%;
    margin-bottom: 30px;
}

.pin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-family: var(--font-heading);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 -4px 5px rgba(0,0,0,0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.pin.down {
    background: var(--bg-elevated);
    color: var(--text-muted);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    transform: scale(0.85);
}

/* Positioning Pins in a Triangle */
/* Row 4 (Back) */
.pin-7 { top: 10%; left: 15%; }
.pin-8 { top: 10%; left: 38%; }
.pin-9 { top: 10%; left: 62%; }
.pin-10 { top: 10%; left: 85%; }

/* Row 3 */
.pin-4 { top: 35%; left: 26.5%; }
.pin-5 { top: 35%; left: 50%; }
.pin-6 { top: 35%; left: 73.5%; }

/* Row 2 */
.pin-2 { top: 60%; left: 38%; }
.pin-3 { top: 60%; left: 62%; }

/* Row 1 (Head Pin) */
.pin-1 { top: 85%; left: 50%; margin-left: -20px; } /* Center horizontally */
.pin-4, .pin-7 { margin-left: -20px; }
.pin-2, .pin-8 { margin-left: -20px; }
.pin-5 { margin-left: -20px; }
.pin-3, .pin-9 { margin-left: -20px; }
.pin-6, .pin-10 { margin-left: -20px; }

/* Actions */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.action-buttons button {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.action-buttons button:hover {
    background: rgba(255,255,255,0.2);
}

.action-buttons button.primary-action {
    background: var(--accent-gradient);
    border: none;
}
