body {
    background: #f4f4f4;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 20px;
}

.home-button {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
}
.home-button:hover {
    background: #555;
}

.title {
    font-size: 32px;
    margin-bottom: 20px;
}

#ttt-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

#commentary {
    margin-top: 20px;
    font-size: 20px;
    color: #444;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#game-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* ---------------------------------------------------------
   ENHANCED BOARD ONLY (SAFE, NON-INTRUSIVE)
--------------------------------------------------------- */
#board {
    background: linear-gradient(to bottom, #f7faff, #e8efff);
    border-radius: 12px;
    border: 2px solid rgba(0,0,0,0.25);
    display: block;
    width: 100%;
    height: auto;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* ---------------------------------------------------------
   MODE BUTTONS — CLEAN, MODERN, RPBYTES-CONSISTENT
--------------------------------------------------------- */
#mode-buttons {
    margin-bottom: 20px;
}

#mode-buttons button {
    margin: 0 10px;
    padding: 10px 20px;

    /*background: #e8eefc;*/              /* subtle blue */
    background: #f4b183;
    color: #111;
    border: 2px solid #333;           /* matches difficulty dropdown */
    border-radius: 8px;

    font-size: 16px;
    font-weight: 600;
    cursor: pointer;

    transition: background 0.15s ease,
                border-color 0.15s ease,
                transform 0.1s ease;
}

#mode-buttons button:hover {
    background: #d5e0fb;
    border-color: #000;
    transform: translateY(-2px);
}

#mode-buttons button:active {
    transform: translateY(0);
}

/* ---------------------------------------------------------
   THINKING INDICATOR
--------------------------------------------------------- */
.ttt-thinking {
    display: none;
    font-size: 20px;
    font-weight: bold;
    color: #4da3ff;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Animated dots */
.ttt-thinking .dots::after {
    content: '';
    display: inline-block;
    width: 1em;
    text-align: left;
    animation: ttt-dots 1.2s steps(4, end) infinite;
}

/* ---------------------------------------------------------
   DIFFICULTY DROPDOWN
--------------------------------------------------------- */
#tttDifficulty {
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #f2f2f2;
    color: #111;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    appearance: none;
}

#tttDifficulty:hover {
    background-color: #e0e0e0;
    border-color: #000;
}

#tttDifficulty:focus {
    outline: none;
    border-color: #000;
    background-color: #ddd;
}

/* ---------------------------------------------------------
   KEYFRAMES
--------------------------------------------------------- */
@keyframes ttt-dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}
