#game-stage .mb-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 343px;
    margin: 0 auto;
    color: var(--text-color);
}

/* 強さの選択 */
#game-stage .mb-level {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

#game-stage .mb-level-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100px;
    height: 44px;
    padding: 0 4px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
}

#game-stage .mb-level-btn[aria-pressed="true"] {
    color: #ffffff;
    background: var(--primary-color);
}

#game-stage .mb-level-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* 状態のことば */
#game-stage .mb-status {
    height: 32px;
    line-height: 32px;
    margin: 8px 0 4px;
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;
}

/* 盤 */
#game-stage .mb-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(40px, 96px));
    gap: 6px;
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

#game-stage .mb-cell {
    aspect-ratio: 1 / 1;
    width: 100%;
    min-height: 40px;
    padding: 0;
    font-size: 56px;
    font-weight: bold;
    line-height: 1;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#game-stage .mb-cell[data-mark="o"] { color: #2b6cb0; }
#game-stage .mb-cell[data-mark="x"] { color: #c53030; }

#game-stage .mb-cell[data-win="true"] {
    background: #fefcbf;
    border-color: #d69e2e;
    box-shadow: 0 0 10px rgba(214, 158, 46, 0.8);
}

#game-stage .mb-cell:focus-visible,
#game-stage .mb-level-btn:focus-visible,
#game-stage .mb-again-btn:focus-visible {
    outline: 3px solid #d69e2e;
    outline-offset: 2px;
}

/* 結果 */
#game-stage .mb-result {
    height: 40px;
    line-height: 40px;
    margin: 8px 0 0;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
}

/* もう一度 */
#game-stage .mb-again {
    height: 48px;
    display: flex;
    justify-content: center;
}

#game-stage .mb-again-btn {
    width: 160px;
    height: 48px;
    font-size: 1.05rem;
    font-weight: bold;
    color: #ffffff;
    background: var(--primary-color);
    border: none;
    border-radius: 24px;
    cursor: pointer;
}

#game-stage .mb-again-btn[hidden] {
    display: none;
}

/* 成績 */
#game-stage .mb-record {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}
