/* Peg Solitaire specific styles */

.solitaire-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1; /* Makes it a square */
    margin: 2rem auto;
    background: rgba(40, 30, 20, 0.8); /* Dark wood hint */
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.hole {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.hole.valid {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.8);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
}

.hole.valid:hover {
    background: rgba(0, 0, 0, 0.3);
}

.hole.valid.highlight {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.invisible {
    opacity: 0;
    pointer-events: none;
}

.peg {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #a5b4fc, #4f46e5);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5), inset -2px -2px 6px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.peg:hover {
    transform: scale(1.1);
}

.peg.selected {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 15px rgba(99, 102, 241, 0.6), inset -2px -2px 6px rgba(0,0,0,0.5);
    border: 2px solid white;
}

.win-message {
    text-align: center;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease-out forwards;
}

.win-message h2 {
    color: #4ade80;
    margin-bottom: 0.5rem;
}

#noMovesMessage h2 {
    color: #ef4444;
}

.win-message.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: #a5b4fc;
}

.premium-btn.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}
