/* Game specific styles for Tic Tac Toe */

:root {
    --primary-color: #FF9800;
    --primary-hover: #F57C00;
    --primary-shadow: #E65100;
    --text-main: #333;
    --bg-card: #FFFFFF;
    --border-color: #e0e0e0;
}

.game-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

/* Guidelines: Spacing */
.game-container h1 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.game-description {
    margin-bottom: 3rem;
    color: #555;
    font-size: 1.1rem;
}

.game-info-board {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-select {
    padding: 8px 16px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: #fff;
}

.turn-indicator {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    background: #fff3e0;
}

.game-area-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 3rem;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background-color: #5d4037;
    /* Grid line color */
    border: 10px solid #5d4037;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.cell {
    aspect-ratio: 1;
    background-color: #fff;
    /* Cell color */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    font-weight: 900;
    cursor: pointer;
    border-radius: 4px;
    /* Slight roundness */
}

/* Board Symbols */
.cell.circle {
    color: #e91e63;
    /* Pink/Red for Maru */
}

.cell.cross {
    color: #2196f3;
    /* Blue for Batsu */
}

.cell:hover:not(.circle):not(.cross) {
    background-color: #fff8e1;
}

/* Guidelines: Buttons */
.primary-btn {
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    min-height: 48px;
    border-radius: 50px;
    box-shadow: 0 4px 0 var(--primary-shadow);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    border-radius: 12px;
}

.overlay.hidden {
    display: none;
}

.overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 800;
}

/* Content Cards */
.instructions {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    margin: 3rem auto 5rem;
    color: #444;
    line-height: 1.8;
}

.instructions h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.instructions h3:first-child {
    margin-top: 0.5rem;
}

.instructions ul {
    padding-left: 1.5rem;
}

.instructions li {
    margin-bottom: 0.5rem;
}

.instructions dl dt {
    font-weight: bold;
    margin-top: 1rem;
    color: #333;
}

.instructions dl dd {
    margin-left: 0;
    margin-bottom: 1rem;
    color: #555;
}